Zesko
June 8, 2023, 11:22am
21
lorebett:
It should. To make it permanent, it’s useless to put the environment variable in .zshenv for example. You have to make sure Hyprland starts with the environment variable, so you should put this in your .config/hypr/hyprland.conf
:
env = QT_QPA_PLATFORM,wayland
I would not set this env configuration for all apps.
Try using an alternative for just one app :
copy /usr/share/applications/btrfs-assistant.desktop
to $HOME/.local/share/applications/btrfs-assistant.desktop
Edit $HOME/.local/share/applications/btrfs-assistant.desktop
to change the line:
Exec=btrfs-assistant-launcher
to
Exec=env QT_QPA_PLATFORM=wayland btrfs-assistant-launcher
dalto
June 8, 2023, 11:41am
22
Shouldn’t that be set globally on hyprland? Isn’t that the proper setting?
Why set it for only one application?
pebcak
June 8, 2023, 11:47am
23
QT_QPA_PLATFORM=wayland
Could this be set in, for example ~/.config/environment.d/envars.conf
also?
Indeed, I don’t see why not setting that globally. Of course, changing the .desktop file would work as well, but I prefer to have it globally.
If that file is read by Hyprland at start, then it should work as well.
Otherwise, if it’s only shell-wise, I don’t think it would (as I said, it didn’t work if I put it in .zshenv)
1 Like
Zesko
June 8, 2023, 12:34pm
26
That forces all installed apps to use a global configuration. That could happen, some of apps don’t fit with the configuration.
For example, GTK_USE_PORTAL=1
was set in my global environment for all apps. I noticed that one of apps Eclipse showed ugly fonts, other apps have no issue.
dalto
June 8, 2023, 1:05pm
27
Right, in this case, isn’t that what you want? That is the correct global setting I believe.
Sure, but setting GTK_USE_PORTAL
isn’t the same thing.
this did fix it for me in hyprland also Exec=env QT_QPA_PLATFORM=wayland btrfs-assistant-launcher