on Environment Variables in r/archlinuxddoublea19 Sep 2019 For sure, this approach works for wayland too. And yes, you can do this for every environment variable you want. If there are a few variables that make sense to keep together, it's good practice to set & export them all from the same .sh file. 2 pointsCopy link
on Environment Variables in r/archlinuxddoublea19 Sep 2019 So many ways to approach this. My go-to strategy is to add a .sh file in /etc/profile.d/. In your case, a simple /etc/profile.d/gdk.sh GDK_BACKEND=x11 export GDK_BACKEND should do the trick. Variables will be set in the environment after login. 5 pointsCopy link
For sure, this approach works for wayland too. And yes, you can do this for every environment variable you want. If there are a few variables that make sense to keep together, it's good practice to set & export them all from the same .sh file.
So many ways to approach this. My go-to strategy is to add a .sh file in
/etc/profile.d/. In your case, a simpleshould do the trick. Variables will be set in the environment after login.
End of this list.
Back to top