[kde] [Bug 466958] GTK application style not applied to apps that get sudo permissions

David bugzilla_noreply at kde.org
Tue Mar 7 20:12:01 GMT 2023


https://bugs.kde.org/show_bug.cgi?id=466958

--- Comment #2 from David <david.cortes.rivera at gmail.com> ---
(In reply to Nate Graham from comment #1)
> Any settings you change are saved to your user account. But when you run
> apps using `sudo`, they get their settings from the root user account,
> because they're being run as the root user.
> 
> In general, GUI apps should not be run using `sudo`; they should be smart
> enough to request elevated privileges themselves when you launch them and
> use them normally. Any apps that don't do this should be fixed, and ideally
> not used at all until that happens.

It's not correct that it doesn't apply user settings to it: if I select
built-in themes like "adwaita-dark", it does apply it to sudo-requesting apps
like synaptic.

Synaptic is by the way run as a user but with sudo permissions through
"synaptic-pkexec". If you don't use a debian-based distro, another alternative
is to try "gparted" which also requests sudo permissions.

Also, I seem to recall you deliberately disabled running graphical apps like
"systemsettings5" as sudo so those settings cannot be changed for the root user
either.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list