LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   How to change a theme programmatically in Ubuntu 10.04? (https://www.linuxquestions.org/questions/linux-desktop-74/how-to-change-a-theme-programmatically-in-ubuntu-10-04-a-4175460764/)

ajaygarg 05-05-2013 05:05 AM

How to change a theme programmatically in Ubuntu 10.04?
 
Hi all.

I feel very weird asking this question, but I got no answers upon googling, for this simple query :(



Please note that I have figured out the ways to change a theme programmatically in Fedora, as follows ::

a)
For GTK2: Set the GTK2_RC_FILES environment variable.

b)
For GTK3:
Code:

Gtk.Settings.get_default().set_property('gtk-theme-name', 'theme-100')

Just Ubuntu is being a pain :P



Will be grateful for any pointers !!



Thanks and Regards,
Ajay

cortman 05-06-2013 08:03 AM

Try

Code:

gsettings set org.gnome.desktop.interface gtk-theme my_gtk_theme
Sorry I haven't tested it- I don't have stock Ubuntu running anywhere.

ajaygarg 05-08-2013 05:17 AM

Hi Cortman.
Is this for the GTK2-version (Ubuntu 10.04), or the GTK3-version (for 12.04)?

I wish to have the theme working on 10.04 :)


All times are GMT -5. The time now is 03:06 AM.