maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Custom/adding application icons (https://talk.maemo.org/showthread.php?t=3669)

jayholler 2006-12-11 17:11

Custom/adding application icons
 
I was getting kind of annoyed with the applications in the task menu that had no pretty icon, and I couldn't find a tutorial anywhere describing this process, so here you go. Let me know if any info here is unclear or innaccurate!

Here is what I did to give minimo the default firefox icon. Root and xterm are required.

All third party apps appear to place a .png file in /usr/share/pixmaps to be used as the icon.

For example the GAIM launcher has an icon called gaim.png

First you will need to get an icon into this folder. You can find one through google, or make your own with the GIMP. It can be any size, and the desktop manager will scale it as needed. I saved the file in my /media/mmc1 directory and then moved it thusly, using xterm:

Quote:

cp /media/mmc1/file.png /usr/share/pixmaps/file.png
then make sure the permissions match the other icons in that folder.

ls -al will tell you the permissions, as well as other useful info.

you can change them with a command like: chmod a+r file.png which would add read rights to the file for all users and groups, as well as the owner.

Next you will need to edit the file which launches the program, in this case minimo. I found the file at:

Quote:

/usr/share/applications/hildon/minimo.desktop
using the command:

Quote:

find / -name minimo.desktop
then

Quote:

vi /usr/share/applications/hildon/minimo.desktop
You can edit the file only if you are root. Just change the line after Icon= to your new icon's name, minus the extension.

In this case i came up with:

Icon=file

Then just reboot, and voila! Your apps custom icon will appear rather than the default grey "no icon" icon.

ps- Is there a way to reestart the desktop without rebooting?

SeRi@lDiE 2006-12-11 18:17

Quote:

Originally Posted by jayholler
I was getting kind of annoyed with the applications in the task menu that had no pretty icon, and I couldn't find a tutorial anywhere describing this process, so here you go. Let me know if any info here is unclear or innaccurate!

Here is what I did to give minimo the default firefox icon. Root and xterm are required.

All third party apps appear to place a .png file in /usr/share/pixmaps to be used as the icon.

For example the GAIM launcher has an icon called gaim.png

First you will need to get an icon into this folder. You can find one through google, or make your own with the GIMP. It can be any size, and the desktop manager will scale it as needed. I saved the file in my /media/mmc1 directory and then moved it thusly, using xterm:



then make sure the permissions match the other icons in that folder.

ls -al will tell you the permissions, as well as other useful info.

you can change them with a command like: chmod a+r file.png which would add read rights to the file for all users and groups, as well as the owner.

Next you will need to edit the file which launches the program, in this case minimo. I found the file at:



using the command:



then



You can edit the file only if you are root. Just change the line after Icon= to your new icon's name, minus the extension.

In this case i came up with:

Icon=file

Then just reboot, and voila! Your apps custom icon will appear rather than the default grey "no icon" icon.

ps- Is there a way to reestart the desktop without rebooting?


Dont forget that some aliases do call to the directory /usr/share/icons/hicolor/scalable/hildon and not pixmaps....
I know because I did this long time ago and I got some icons to work your way and some icons to work in the above directory.

Thanks Grate tut by the way...

jayholler 2006-12-11 19:53

Thanks for the heads up, I did not know that!


All times are GMT. The time now is 06:34.

vBulletin® Version 3.8.8