Skip to main content
added 663 characters in body
Source Link

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 dconf-editor under 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.

LATER ON....

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.

AND ALSO...

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?

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 dconf-editor under 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.

LATER ON....

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.

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 dconf-editor under 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.

LATER ON....

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.

AND ALSO...

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?

Added root login results
Source Link

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 dconf-editor under 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.

LATER ON....

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.

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 dconf-editor under 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.

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 dconf-editor under 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.

LATER ON....

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.

Extra info
Source Link

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 dconf-editor under sudo but that only offers limited options, excluding the desktop settings required to configure such things.

Is this an OS limitation or sis 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.

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 dconf-editor under sudo but that only offers limited options, excluding the desktop settings required to configure such things.

Is this an OS limitation or s there somewhere deeper down that I can configure the 'default' settings?

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 dconf-editor under 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.

Added more info on things I tried
Source Link
Loading
Source Link
Loading