summaryrefslogtreecommitdiff
path: root/start/src/main.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-02-27 17:57:04 +0000
committerGitHub <noreply@github.com>2026-02-27 17:57:04 +0000
commitf624449c12f905669bc7ede446e913c3d5ca75f5 (patch)
treef30180d354793fda2c1ce78075e97af9ee1c9e39 /start/src/main.cpp
parent70cdd819e4bee3c4dcea6961d32e61e6afe4eeb0 (diff)
start: add --force-nixgl and check /run/opengl-driver (#13385)
Diffstat (limited to 'start/src/main.cpp')
-rw-r--r--start/src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/start/src/main.cpp b/start/src/main.cpp
index e73fcfa5..45a78357 100644
--- a/start/src/main.cpp
+++ b/start/src/main.cpp
@@ -22,6 +22,7 @@ Any arguments after -- are passed to Hyprland. For Hyprland help, run start-hypr
Additional arguments for start-hyprland:
--path [path] -> Override Hyprland path
--no-nixgl -> Force disable nixGL
+ --force-nixgl -> Force enable nixGL
)#";
//
@@ -79,6 +80,10 @@ int main(int argc, const char** argv, const char** envp) {
g_state->noNixGl = true;
continue;
}
+ if (arg == "--force-nixgl") {
+ g_state->forceNixGl = true;
+ continue;
+ }
}
if (startArgv != -1)