LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 05-05-2013, 06:05 AM   #1
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Rep: Reputation: 0
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
 
Old 05-06-2013, 09:03 AM   #2
cortman
Member
 
Registered: Jan 2012
Location: ZZ9 Plural Z Alpha
Distribution: Crunchbang 11, LFS 7.3, DSL 4.1.10, Lubuntu 12.10, Debian 7
Posts: 219

Rep: Reputation: 43
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.
 
Old 05-08-2013, 06:17 AM   #3
ajaygarg
Member
 
Registered: Mar 2010
Location: New Delhi, India
Distribution: Fedora
Posts: 94

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
F18 gnome-shell user theme extension. theme doesn't change. ewlabonte Fedora 1 04-11-2013 12:49 AM
Why is it I can't change the sound theme in Ubuntu 9.10, 10.04, 10.10, Why? basilf Ubuntu 2 01-18-2011 05:56 AM
Ubuntu 10.04: Can't change the theme...? ladySeion Linux - Desktop 4 09-30-2010 02:30 PM
How to change Usplash theme in Ubuntu 8.10? oblador Ubuntu 3 07-29-2009 10:18 AM
cant change theme on emerald theme manager malanco Linux - Newbie 1 06-28-2007 05:49 AM


All times are GMT -5. The time now is 10:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration