Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 11556  / 2 Years ago, wed, august 24, 2022, 12:19:35

I would like the the applications I launch as root to look differently from the application launched as a normal user.



This can be done by using a theme that does not come from usr/share/themes but I haven't found a way to modify the default theme the root applications use.



Can this be done?



Using sudo gnome-appearance-properties doesn’t work.


More From » gtk

 Answers
4

I found a hack to get get a system wide change :)




  • From the Appearance Preferences choose a theme you have installed in ~/.themes

  • Make a .themes folder in /root :



sudo mkdir /root/.themes




  • Copy your theme to /root/.themes :



sudo cp -r ~/.themes/yourTheme /root/.themes




  • Delete the gtk-2.0 and metacity-1 folders in /root/.themes/yourTheme :



sudo rm -R /root/.themes/yourTheme/gtk-2.0 /root/.themes/yourTheme/metacity-1




  • Copy the gtk-2.0 and metacity-1 folders of the new root theme to /root/.themes :



sudo cp -r /PathToRootTheme/gtk-2.0 /root/.themes/yourTheme/ ; sudo cp -r /PathToRootTheme/metacity-1 /root/.themes/yourTheme/


[#43788] Wednesday, August 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
losbu

Total Points: 71
Total Questions: 124
Total Answers: 106

Location: Honduras
Member since Sat, Jul 24, 2021
3 Years ago
;