Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is it possible to somehow get a new 'gnome-shell.css' file for the Adwaita theme.

The file is located in /usr/share/gnome-shell/theme and I have messed mine up (I forgot to make a backup first).

Do I need to reinstall Gnome Shell completely to do this?

share|improve this question
add comment

2 Answers

The easiest solution I can think of is to download the GNOME Shell .deb package and extract the .css file from there, if you don't want to reinstall.

You can get the .deb for your architecture (the .css is platform independent really, but just in case) from this page: https://launchpad.net/ubuntu/+source/gnome-shell

Next time you want to edit the .css file, make a backup :).

share|improve this answer
    
Thanks. I got it off the live disc. –  Dave Dec 14 '11 at 19:29
    
@Dave: the live Disk has it? –  RolandiXor Dec 14 '11 at 19:34
add comment

For information only - since you have already got the file.

All the deb packages which you have downloaded should be still in your packages archive (unless you have been very diligent and have cleaned up your packages archive!)

Your packages archive is in /var/cache/apt/archives

Thus for my version of gnome-shell (I'm using 32bit) I would extract the gnome-shell.css file directly from the archive deb file i.e.

cd ~/Downloads
dpkg --fsys-tarfile /var/cache/apt/archives/gnome-shell_3.2.1-0ubuntu1_i386.deb | tar -xf - ./usr/share/gnome-shell/theme/gnome-shell.css

i.e. you pass the path + file name as a parameter as shown (all paths are relative so its ./usr/... rather than /usr/... )

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.