Btrfs-assistant fails to start

I would not set this env configuration for all apps.

Try using an alternative for just one app :

  1. copy /usr/share/applications/btrfs-assistant.desktop to $HOME/.local/share/applications/btrfs-assistant.desktop

  2. 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

Shouldn’t that be set globally on hyprland? Isn’t that the proper setting?

Why set it for only one application?

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

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.

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