Topic: Change default Icon

Hello,

I'v been tryin' to change Icon for Terminator, because my Icon theme doesn't have one. So I just took a terminal icon from my theme, but i didn't fine the way to change it.

I'v tried:

Change it in /usr/share/icons/defaults, in /usr/share/app-install/icons and /usr/share/pixmaps
Edit the Icon= line in /usr/share/app-install/desktop, icon changed only on the file, but not on the terminator itself on the tint2.
Adding icon=icon_name in terminator config.

Please, give me a tip :)
Thank you!

Oh, and one more question, when I install Icon theme from User Interface Settings, just selecting *.tar.gz file, is it extracting to some place? It's not /usr/share/icons and not ~/.icons. So where are they?

There's just one kind of man than you can trust, that's a dead man. Or a gringo like me!

Re: Change default Icon

You can tell the Terminator which icon to use, just open:

sudo gedit /usr/share/applications/terminator.desktop

It should look someting like this:

[Desktop Entry]
Name=Terminator
Comment=Multiple terminals in one window
Comment[be]=Meerdere terminals in een venster
Comment[be@latin]=Meerdere terminals in een venster
Comment[en_CA]=Multiple terminals in one window
Comment[en_GB]=Multiple terminals in one window
Comment[es]=Multiples terminales en una ventana
Comment[fr]=Plusieurs terminaux dans une fenêtre
TryExec=terminator
Exec=terminator
Icon=terminator
Type=Application
Categories=GNOME;GTK;Utility;TerminalEmulator;
StartupNotify=true
X-Ubuntu-Gettext-Domain=terminator

On the line that says "icon" you can but in whatever you want, for instance "terminal" will give you the generic terminal icon, which will change when you change icon theme.
Or you can enter the path to a specifik one...
~/.icons/my_flashy_terminator_icon.png/ - then it won't change when you change themes either.

Last edited by Zwopper (2009-08-26 09:20:23)

My artwork at deviantART   |    My Tweet   | My upcoming web page
Nulla dies sine GIMP!
ASUS Eee PC 1000 HE | 2GB | 120GB OCZ Vertex 2 SSD | #! Statler

Re: Change default Icon

Thanks for reply Zwooper
I did as you described but that didn't work :) The damn icon is still on the same place
http://img38.imageshack.us/img38/7356/2009082612512795241280x.th.png

There's just one kind of man than you can trust, that's a dead man. Or a gringo like me!

Re: Change default Icon

Ok, even after replacing every single possible .png .svg files containing terinator icon, i still got the same thing on the tint2, lol.
Different size icons replaced as you can see from the screenshot.
http://img34.imageshack.us/img34/2060/2009082612512892021280x.th.png

There's just one kind of man than you can trust, that's a dead man. Or a gringo like me!

Re: Change default Icon

Hello ..

* Select one icon you want to use .. ( I modifiy terminator.png, reduce to grey and rename my_terminator.png ).
* Copy it to /usr/share/pixmaps  ( sudo cp my_terminator.png /usr/share/pixmaps )
* Modify  /usr/share/pyshared/terminatorlib/terminator.py ( ~ line 226 )

      self.window.set_icon (self.icon_theme.load_icon (APP_NAME, 48, 0))

* Simply replace APP_NAME  by icon name you want to use ..

      self.window.set_icon (self.icon_theme.load_icon ("my_terminator", 48, 0))

Et Voilà .. wink

http://www.ad-comp.be/public/images/divers/terminator_change_icon.jpeg

@bientot ..

~$ whoami
ADcomp

Re: Change default Icon

Finaly!
Thank you very much ADcomp!
I need to remember this thing for the next use big_smile

There's just one kind of man than you can trust, that's a dead man. Or a gringo like me!

Re: Change default Icon

resurrecting this one because i want to do the same. i will provide some new info first and then the question.

first of all, the location of the needed file is different. it is here:
/usr/share/terminator/terminatorlib/window.py

there you'll find the lines mentioned by ADcomp. i added my own terminator.png to the pixmaps folder, but it only gives me an exclamation mark icon. i'm sure it finds something, because when i give it for example bla.png, it won't even load the terminator.

i've looked through the python-documentation but i'm no coder so i can't figure it out. any ideas?