Xdg-su not working

I experimented a lot this evening, and I came up with something new that you could try immediately:

  • Get the latest myrlyn-sudo script from the Git repo.
  • Add the variables that you need/want to a new config file ~/.config/openSUSE/myrlyn-sudo.conf (your home directory, not root’s) like this:
    QT_QPA_PLATFORMTHEME=qt6ct
    QT_ENABLE_HIGHDPI_SCALING=0
    QT_SCALE_FACTOR=1
    
    A look into the myrlyn-sudo script will tell you that it sources this file if it exists, so those variables are added to the environment for the sudo call if they are in the ENV_KEEP list.

This is used for myrlyn-sudo. For a non-root myrlyn call, add the variables to your ~/.bashrc or equivalent as usual.

The latest Myrlyn binary also logs the environment variables starting with QT. Build from source or use myrlyn-git linked from the home page.

HTH

1 Like