Closed sergwish closed 4 months ago
Sounds reasonable. @tsujan @luis-pereira @stefonarch What do you think?
For what my understanding is this should be safe to implement.
I also think this makes perfect sense.
It is very inconvenient ... to use ... PCManFM-qt as root, QTerminal as root, FeatherPad as root... Basically any GUI application that requires root privileges
IMO, that's absolutely not a good idea, although it's your system and you could do anything with it.
However, I agree on preserving more EVs when it's safe.
EDIT: I mean that it isn't just inconvenient but wrong to use so many apps as root.
Done in #217
Any program started with lxqt-sudo does not receive information about current HiDPI scaling settings. So its interface is not scaled properly.
Expected Behavior
Interface scaling settings are applied to all applications.
Current Behavior
Interface of any application run with lxqt-sudo is not scaled.
Possible Solution
Add "GDK_SCALE", "GDK_DPI_SCALE" and "QT_SCALE_FACTOR" to the list of preserved environment variables ALLOWED_VARS in sudo.cpp (lines 100 - 105). Maybe also add "GTK_OVERLAY_SCROLLING" and "GTK_CSD".
Steps to Reproduce (for bugs)
Context
It is very inconvenient on 15" 1920x1080 screen to use Managing Software Sources, Synaptic package manager, PCManFM-qt as root, QTerminal as root, FeatherPad as root... Basically any GUI application that requires root privileges to function properly in some situation is barely usable with lxqt-sudo.
System Information