I've been running Cinnamon on my desktop, but lately I switched to LXQT and replaced some applications with their QT variants, nemo got replacet with pcmanfm-qt. Sometimes I need to run a GUI applications with sudo. GTK applications don't have any issues, but QT ones look awful with default widget styling and missing icons allover the place. So for example when i sudo pcmanfm-qt I get:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
isPrimaryInstance
Therefore I tweak /etc/sudoers to have:
Defaults env_keep += "HOME XDG_RUNTIME_DIR"
The difference is that now when trying to sudo pcmanfm-qt I get:
QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
isPrimaryInstance
and the application interface still looks ugly. I actually tried the LXQT LiveCD and it has the same issue. I also tried my search-fu to get some answers but all trails lead nowhere. Is this issue fixable?