Is there a way in Linux to set the desired icon sets and themes used when running apps as sudo. At the moment if I, for example, type ...
sudo gedit /et/fstab
Then if I click Save As then the file save dialog doesn't match my own desktop environment settings, it seems to use default icons and the default theme (Adwaita).
Is there anywhere this can be configured so that they match (or even better I'd like to make them largely the same but with different colours to indicate I'm running elevated).
I'm running Gnome on Manjaro if it's relevant.
I have tried a direct gsettings command line call:
sudo gsettings set org.gnome.desktop.interface icon-theme 'Tela-red-dark'
but that doesn't work, it did point me to look at doing my next thing which explained kind of why this didn't work.
I have tried running
sudo but that only offers limited options, excluding the desktop settings required to configure such things.
Is this an OS limitation or is there somewhere deeper down that I can configure the 'default' settings?
As I was interested, I also ran this...
sudo gsettings get org.gnome.desktop.interface icon-theme
To confuse my brain further, rather than returning Adwaita (which is what's used in the
sudo run GUI windows) it returned Papirus-Dark-Maia which is the default icon theme that's used if you create a fresh new user in Manjaro.
I logged on directly as root and set root up with the configuration that I want (similar to my main UI setup but with big glaring red danger colours) and that made no difference at all to what appears when
sudo is used locally.
After being told that
sudo shouldn't be used for such things I configured
pkexec for my use case and enabled
gedit following the instructions in this post: How do I run GUI applications as root by using pkexec?
I got exactly the same result as with using
sudo from a UI perspective.
The elevated privilege apps seem to operate using their own default configurations for how to display which don't seem to honour the logged in user (which makes sense to me) or root which... doesn't.
My original question remains - How do I change the UI settings used by the elevated apps?