this post was submitted on 05 May 2025
10 points (100.0% liked)

Arch Linux

8578 readers
34 users here now

The beloved lightweight distro

founded 5 years ago
MODERATORS
 

To fix an issue I was having with GTK apps on Wayland (KDE Plasma 6) I went to /usr/share/applications found the .desktop file I wanted to change, right clicked, went to enviornmental variables and added Exec=env GDK_BACKEND=x11 to force the app to use X11. This fixed my problem. However, I checked .zshrc, .bashrc expecting to see the change there but did not. I don't have /etc/environment or .profile on my system it seems. I'd like to know where these changes were saved. I also tried opening the .desktop file in a text editor to no avail. This was supposed to be a temporary fix while waiting for the developer to fix a scaling issue on Wayland. I'm not sure how to revert it.

you are viewing a single comment's thread
view the rest of the comments
[–] A_norny_mousse 1 points 5 hours ago

I’d like to know where these changes were saved.

what you describe isn't changed anywhere but in the desktop file and in the environment (i.e. somewhere in RAM) of the application while it runs.

Are you saying you reverted the edit and the app still runs in Xorg instead of wayland? In that case there might be a setting inside the app that does that (the full set is not always accessible via gui)?