LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 06-01-2008, 09:01 PM   #1
SChipS
Member
 
Registered: Mar 2005
Posts: 56

Rep: Reputation: 15
Shutdown Panel Launcher Icon change


My searches on this subject turned up nothing I could use.

I made a simple "quit.png" icon file to replace the shutdown icon on the Gnome panel on my openSUSE 10.3 Dell Optiplex GX260.

Then I spent the entire day trying to find out how to change that icon. The shutdown icon on my lower panel seems to be one of those icons which will not allow you to alter the Properties, (Properties is not offered with the traditional right click).

Any idea how one might go about changing this Gnome Shutdown icon on the panel?

Thanks,
 
Old 06-01-2008, 10:25 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
My first guess would be a desktop configuration utility in the main menu if right-click on the panel doesn't get you to such a config utility.

My second guess would be a config file somewhere in /etc that you could edit to name another image to use.

My third guess would be that it's compiled in. You would have to find out which package installs it, download the source code, find the file that names the image to use and edit that file, add you image to the package, then recompile and reinstall.

Run something like 'find / -type f | grep <icon name>' where <icon name> is the name of the icon now used. Run the find command as root and it should find the icon's location, as well as all files that reference that icon name. From that information, you should be able to quickly determine whether you can edit a file and easily replace that icon, or if you will have to recompile the source code to add you image.
 
Old 06-02-2008, 04:10 AM   #3
SChipS
Member
 
Registered: Mar 2005
Posts: 56

Original Poster
Rep: Reputation: 15
bigrigdriver,

Thanks for that nicely written reply.

I did the 'root find grep' search on "gnome-shutdown.svg", the name of the icon in use now, and got only one line showing the root path to the file:

usr/share/icons/gnome/scalable/apps/gnome-shutdown.svg

Now oddly enough in usr/share/applications there resides a file titled "System Shutdown Dialog" which is a desktop configuration file. The very same icon is associated with it. If you double click the icon the shutdown dialog box appears offering the ususal choices of Suspend, Hibernate, Restart, Cancel, and Shutdown. However this shutdown dialog box is shaped differently that the box which appears if you select the shutdown icon on the panel.

I changed the icon under Properties of this System Shutdown Dialog file yesterday. The icon changed as I desired at the file in the folder but the desktop panel icon showed no change. Used root, re-booted, etc. So I changed it back to what it was originally, gnome-shutdown.svg.

All my searching yesterday pointed to this file as the one and only System Shutdown Dialog. Strange that engaging it in it's folder brings up a different dialog box than when it is engaged on the desktop panel. Also strange that changing the icon in it's properties seems to have no affect outside the folder it resides in.

And I'm thinking that grep should have showed the icon associated with the system shutdown dialog. Yes?

Thanks again,
 
Old 06-02-2008, 05:53 AM   #4
v1pEr
Member
 
Registered: Oct 2004
Location: Belgium
Distribution: winxp + suse 10.1 dual boot
Posts: 88

Rep: Reputation: 15
did you try replacing the gnome-shutdown.svg with the one you made? (instead of changing the configuration file). Maybe the dialog box is compiled or something and changes will only propagate if you compile again. It would make sense to me to compile such a thing because, although it's small, you don't change it like every 2 days. I don't know much about compiling but I think the image will not be compiled in it so replacing the current one MIGHT do the trick.

Mind that I don't know anything about this and I'm only guessing, so at least take a backup of the file(s) before following my hints ;-)
 
  


Reply



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 to change SCIM icon on panel checkchan Fedora 2 11-20-2007 11:09 AM
How to change a GNOME panel icon from command line? General Programming 0 03-19-2007 06:22 PM
launcher panel problems canyon289 Fedora 4 11-11-2004 01:15 PM
RedHat 9 "Red Hat Icon" on the panel..Change? digitalkid Linux - Newbie 3 12-27-2003 04:04 PM
How to change K Menu icon in kde panel linuxlah Linux - General 6 07-18-2003 06:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 08:40 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