You are not logged in.
I'm using SDDM as a display manager, starting my sway environment. Before starting sway, I'd like to set WLR_RENDERER="vulkan". I don't know how to do this right now. Any hints?
Offline
You can try doing the steps described here on /usr/share/wayland-sessions/sway.desktop
Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...
Offline
Are you sure that this sets environment variables _before_ starting the application, not within the application?
Offline
Yes, it will do it before.
Last edited by jl2 (2024-09-11 16:53:52)
Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...
Offline
You could just test it, but generally, environment variables are always defined before running the thing that reacts to them, so yes using that adjustment will pass that environment specifically to the started wayland session assuming you're actually using the desktop/session file (which SDDM will)
General further information on environment variables and how they work can be found in: https://wiki.archlinux.org/title/Environment_variables -- with a couple of suggestions for global spots that are basically guaranteed to be parsed when you log in, before something else is started
Offline
Indeed, I put
```
Exec=env WLR_RENDERER=vulkan sway
```
into `/usr/share/wayland-sessions/sway.desktop` and sway does indeed use vulkan to render.
Offline
set WLR_RENDERER=vulkan to /etc/environment
Offline