this post was submitted on 05 May 2025
14 points (93.8% liked)
Arch Linux
8868 readers
20 users here now
The beloved lightweight distro
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Huh, odd you can't edit that file. You may be able to change it in the 'menu editor' (KMenuEdit) application however which is my goto. In the future I'd add any application specific environment variables in there instead of editing it the way you've done. This is likely causing issue. I could be wrong though.
As for where is it stored, it's usually stored in that .desktop file. It won't be in your bashrc, or anything like it, as what you've done isn't changing your system as a whole. All it does is tell plasma when you want to launch this application, first run that bit of code you've given in the same bash context (or whatever your default shell is. The shell that runs when you use the sh command normally). This is good because I doubt you want all GDK apps to use x11 and this environment variable should only exist for the app you want it to.
Edit: wait, what .desktop filedid you edit? Are all GTK apps now x11? Have you tried the right click method you did before? To what effect?
KMenuEdit was the solution. Not all GTK apps are x11. Only a few that won't work with my global menu bar and the before mentioned app with scaling issues. Thank you!