You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ran into a case (NVIDIA driver forced session-wide via default/hypr/nvidia.lua, but one specific app needed X11/Mesa instead) where the fix was a completely standard XDG mechanism, not anything Omarchy-specific: dropping a same-named .desktop file in ~/.local/share/applications/ that overrides the package-installed one in /usr/share/applications/ (user data dir takes precedence in the XDG desktop-file lookup order), with an Exec= line wrapping the real binary in env VAR=value ... /path/to/real/binary %f.
This isn't specific to GPU vendor forcing — it's the general answer to "how do I override an env var for just one installed app, without touching its package or my whole session's environment" — a question that'll come up for plenty of things beyond NVIDIA (locale, Qt/GTK theme quirks, toolkit backend selection, etc.).
Suggestion: add a short entry to Common Tweaks documenting this pattern generically, since it currently isn'''t mentioned anywhere in the manual and it'''s the correct XDG-native answer rather than editing Hyprland'''s session-wide env config for an app-specific problem.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Ran into a case (NVIDIA driver forced session-wide via
default/hypr/nvidia.lua, but one specific app needed X11/Mesa instead) where the fix was a completely standard XDG mechanism, not anything Omarchy-specific: dropping a same-named.desktopfile in~/.local/share/applications/that overrides the package-installed one in/usr/share/applications/(user data dir takes precedence in the XDG desktop-file lookup order), with anExec=line wrapping the real binary inenv VAR=value ... /path/to/real/binary %f.Concrete example that worked:
followed by
update-desktop-database ~/.local/share/applications. Survives package updates since it never touches the package-owned file. Full case study: https://gist.github.com/CJHarmath/53ee5cdc6c02e4467ec051cfac9b1bb9This isn't specific to GPU vendor forcing — it's the general answer to "how do I override an env var for just one installed app, without touching its package or my whole session's environment" — a question that'll come up for plenty of things beyond NVIDIA (locale, Qt/GTK theme quirks, toolkit backend selection, etc.).
Suggestion: add a short entry to Common Tweaks documenting this pattern generically, since it currently isn'''t mentioned anywhere in the manual and it'''s the correct XDG-native answer rather than editing Hyprland'''s session-wide env config for an app-specific problem.
All reactions