LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-21-2007, 02:19 AM   #1
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 396

Rep: Reputation: 38
Where does Ubuntu store user set theme ?


Hi all,

Customizing the Ubuntu LiveCD and onto the final touches.

I can't find where Ubuntu stores the system wide default theme and where it stores a user selected theme.

I tried editing /etc/gdm/gdm.conf and /etc/gdm/gdm.conf-custom to set the GtkTheme value but nothing.

So I have just edited the Human theme to suit. But now the icons. I made a custom theme in a liveCD and saved it, put it in /etc/skel/.themes so it is available to all new users. But how does one set the system or a user to use a particular theme ? Which file is it ?


Any help on this would be great!

Thanks
 
Old 05-21-2007, 02:31 AM   #2
samstar
Member
 
Registered: Apr 2007
Distribution: suse 10.2
Posts: 324

Rep: Reputation: 31
Hi,

Try /etc/opt/gnome/gdm

The /etc/opt is where the display managers' defaults are kept, since they install to the /opt directory now.

Sam
 
Old 05-21-2007, 03:42 AM   #3
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 396

Original Poster
Rep: Reputation: 38
Cheers samstar, I'll try that tomorrow when back at work.

Thanks
 
Old 05-21-2007, 06:31 PM   #4
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 396

Original Poster
Rep: Reputation: 38
Nothing in /opt
It does have /opt though, but just nothing in it.
 
Old 05-21-2007, 07:06 PM   #5
snares
Member
 
Registered: Mar 2006
Distribution: Ubuntu Gusty Gibbon
Posts: 108

Rep: Reputation: 16
It should be in /usr/share/gdm/themes
 
Old 05-21-2007, 07:27 PM   #6
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 396

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by snares
It should be in /usr/share/gdm/themes

This is where the theme's are listed, but how do we set which one is in use ?
 
Old 05-21-2007, 07:38 PM   #7
snares
Member
 
Registered: Mar 2006
Distribution: Ubuntu Gusty Gibbon
Posts: 108

Rep: Reputation: 16
System->Preferences-->Theme

Select the theme you want and hit customize to alter it.
 
Old 05-21-2007, 07:40 PM   #8
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 396

Original Poster
Rep: Reputation: 38
Need to change the file directly. Like I said, I am customising the Live CD and working in the squash file system through a bash chroot.
 
Old 05-21-2007, 08:28 PM   #9
samstar
Member
 
Registered: Apr 2007
Distribution: suse 10.2
Posts: 324

Rep: Reputation: 31
Ok, if you're looking for the themes themselves, like snares said, they'd be in the /usr/share/gdm or /usr/share/ directories. If you want the configuration files, they should always be located in the /etc folder, under particular subfolders.

GDM themes only refer to your login prompt's themes. These configuration files do not affect the window manager themes after you've logged in.

I don't know where the system default configuration files are. I know that user specific configuration files are located inside hidden files and directories in users' home directory (~). I don't have time to go into detail, but explore the hidden directories there to find what you want.

As to the /opt and /etc/opt folders, I think that's just a quirk unique to Suse distros.

Sam
 
Old 05-21-2007, 08:45 PM   #10
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 396

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by samstar
Ok, if you're looking for the themes themselves, like snares said, they'd be in the /usr/share/gdm or /usr/share/ directories. If you want the configuration files, they should always be located in the /etc folder, under particular subfolders.
Yeah got the themes. They are also located in ~/.themes once a user saves their own based on a mix of options in the GUI.

I wouldnt have thought a user choosen setting would go in /etc as I didnt need to supply sudo password to set it in the GUI and it would need those rights in order to write to /etc

System wide probably is in /etc, but I have been looking for days.

Quote:
Originally Posted by samstar
GDM themes only refer to your login prompt's themes. These configuration files do not affect the window manager themes after you've logged in.
I have read otherwise. I have read the GtkTheme= setting in the assortment of gdm.conf affect your themes in Gnome.


Quote:
Originally Posted by samstar
I don't know where the system default configuration files are.
Me either, hence my problem

Quote:
Originally Posted by samstar
I know that user specific configuration files are located inside hidden files and directories in users' home directory (~). I don't have time to go into detail, but explore the hidden directories there to find what you want.
I am aware of this and have done searches, listings before and after making a GUI change and then running diff over files and nothing seems to change when the theme is changed in the GUI. I dont where else a user has perms to write to, but nothing seems to be written to anything in ~/.*
I am still looking, but I thought I could save me hours of diff'ing and searching by asking here.



Quote:
Originally Posted by samstar
As to the /opt and /etc/opt folders, I think that's just a quirk unique to Suse distros.

Sam
Ahh ok.

Last edited by DaveQB; 05-21-2007 at 09:00 PM.
 
Old 05-21-2007, 09:23 PM   #11
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 396

Original Poster
Rep: Reputation: 38
Look at what I found !

http://developer.gnome.org/doc/white...fig/index.html

What an anti-climax that was haha
 
Old 05-22-2007, 12:01 AM   #12
samstar
Member
 
Registered: Apr 2007
Distribution: suse 10.2
Posts: 324

Rep: Reputation: 31
I found quite a few configuration files located in /var/lib and its subdirectories. Some seem to set up the 'human' theme, so that could be where the default configs are stored. I can't really go into further detail, just explore it thoroughly.

I also thought about the /etc/alternatives folder and if that might point to where the defaults are.

Sam
 
Old 05-22-2007, 02:38 AM   #13
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 396

Original Poster
Rep: Reputation: 38
Well my solution was to simply run

Code:
mv /usr/share/themes/Human /usr/share/themes/Human-orig
cp -a /usr/share/themes/Clearlooks /usr/share/Human
And...

Code:
mv /usr/share/icons/Human /usr/share/icons/Human-orig
cp -a /usr/share/icons/gnome /usr/share/icons/Human

A bit of a hack, but it works.


I never thought it would be this hard to find the config files in Gnome. So glad I use KDE.
 
  


Reply

Tags
gnome, gsm, gtk, theme


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
How Do I Set GTK Theme achemdion Zenwalk 2 10-05-2006 08:14 AM
How to set external theme for xfce4? noware Linux - Software 16 05-11-2006 06:11 AM
theme set phoneix Linux - General 4 10-05-2005 11:53 AM
in which directory user mail store in Redhat 9 nazib Linux - Software 1 12-08-2004 02:33 AM
set GTK theme w/out Gnome jpbarto Linux From Scratch 4 05-01-2003 10:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:46 AM.

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
Open Source Consulting | Domain Registration