View Single Post
Posts: 1,283 | Thanked: 370 times | Joined on Sep 2009 @ South Florida
#28
Originally Posted by archebyte View Post
An easy way to add an icon to a shortcut for let say, my post above, would be first to find/create a PNG image of dimension 48x48. google this. save file to /usr/share/icons/hicolor/48x48/hildon/

Modify the .desktop file to include the following line. The right side should be the name of file without the .png. (the name of my file was topx.png)
Code:
Icon=topx
Save the file and reboot to see the icon for the shortcut.

my topx.desktop shortcut-with-icon for 'top' looks like this:
Code:
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Terminal=true
Name=topx
Exec=/usr/bin/osso-xterm top
Icon=topx
X-Osso-Type=application/x-executable
HTH
Glad you brought this up. I have a question about how the icon file is associated. I used a 26x26 file I made for a desktop shortcut. Would yours have worked if you had used a 26x26? I'm wondering about paths and icon directories and how they work. Also, my 26x26 works great for the shortcut but does not show up like yours does here in the main app menu. I just get a generic icon there??

There are a lot of icon directories in diff sizes and I'm trying to understand them.