VectorLinux
August 01, 2014, 04:11:56 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: How to set icon for desktop shortcut in IceWM?  (Read 2143 times)
TLM
Member
*
Posts: 88


« on: May 25, 2009, 12:05:17 pm »

OK, new question Smiley I have found out how to copy shortcuts from the usr/share/applications folder onto my desktop. However some of the shortcuts have no icons. For example, mtpaint and Wicd Network Manager only have text; no icons. They function ok, however I would like to have the icons present. Thanks!

Also, I just installed kompozer via gslapt, however I cannot get it into my start menu. I done the update menu function, including  deep search. Also rebooted. No luck. I can launch kompozer from the command line, but I would like a shortcut in my start menu, and a shortcut on the desktop. How to??? Thank you again.
« Last Edit: May 25, 2009, 12:25:53 pm by TLM » Logged

Particle board should be outlawed.
stretchedthin
Administrator
Vectorian
*****
Posts: 3780


WWW
« Reply #1 on: May 25, 2009, 12:24:05 pm »

Right click on the mtpaint.desktop file on the desktop and open with leafpad.

You will see something like this...
[Desktop Entry]
Encoding=UTF-8
Name=mtpaint
MimeType=application/paint
GenericName=painting app
Exec=mtpaint
Icon=icon.xpm
etc,etc.~~

The last one "Icon=icon.xpm", is the problem as icon.xpm does not exist in /usr/share/pixmaps/, I think it's just a generic place holder.

Try changing that line to 'Icon=xpaint.png' without the quotes.
Save your changes.
You should see an icon appear right away.

You can use pictures from other areas than /usr/share/pixmaps as well, but since /usr/share/pixmaps is the default you will have to show the full path...
example
Icon=/usr/share/icons/mtpaint.png

You may wish to use that one.  It is the actual icon for mtpaint.

Logged

Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee
TLM
Member
*
Posts: 88


« Reply #2 on: May 25, 2009, 12:47:14 pm »

Ok, thanks. I kind of figured some of it out on my own. I opened the desktop config file for wicd with Adie, and then changed the icon line to:

Icon=wifi.png

And that does the trick! I just had to locate the icons. So far I have found 2 folders of icons: pixmaps and icons.

Still cannot find how to make a shortcut for kompozer. I still have to launch it from the command line. I cannot even find the executable to it, otherwise I might be able to help myself. I do not even have a menu category for development, which is usually where the kompozer shortcut shows up.
Logged

Particle board should be outlawed.
toothandnail
Tester
Vectorian
****
Posts: 2527


« Reply #3 on: May 25, 2009, 12:58:48 pm »

How long ago did you install Kompozer? If it was a while ago, there was a build which lacked a menu entry and an icon.

It has been rebuilt - if you enable the testing repo, you should be able to install the rebuilt version, which should get round the problem you have with it at the moment.

paul.
Logged
TLM
Member
*
Posts: 88


« Reply #4 on: May 25, 2009, 01:20:42 pm »

I just installed it a few hours ago. It is version 0710; the same version I use in window$. I will see if I have the testing repository enabled and see if there is a newer version there. Thanks.
Logged

Particle board should be outlawed.
nightflier
Administrator
Vectorian
*****
Posts: 4018



« Reply #5 on: May 25, 2009, 02:23:24 pm »

Looks like the kompozer package doesn't contain the needed .desktop file.

To manually create one: as root, in a terminal enter:
Code:
mcedit /usr/share/applications/kompozer.desktop

Next, copy the following information:
Code:
[Desktop Entry]
Name=KompoZer
Comment=WYSIWYG Web Editor
Exec=kompozer
Icon=/usr/lib/kompozer/icons/mozicon50.xpm
Terminal=false
Type=Application
Categories=Application;Development;
Encoding=UTF-8

Paste it into mcedit with key combination Shift-Insert
Press F2 to save, F10 to exit.

Now run the menu updater and you should get a Development sub-menu with Kompozer in it.
Logged
TLM
Member
*
Posts: 88


« Reply #6 on: May 25, 2009, 03:00:45 pm »

Thanks nightflier. I had actually already created a copy of the desktop file for FOX Calculator, and then modified it with the name "kompozer" (no quotes) I then grabbed the kompozer icon from Windows and converted it to a .png and imported it into VL and then pointed the Icon=line to it and Presto!!

But your template in your post is more correctly detailed, so I am going to use it and rebuild my file for Kompozer once more. Many thanks!
Logged

Particle board should be outlawed.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!