VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: How to set icon for desktop shortcut in IceWM?  (Read 3006 times)

TLM

  • Member
  • *
  • Posts: 88
How to set icon for desktop shortcut in IceWM?
« on: May 25, 2009, 01:05:17 pm »

OK, new question :) 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, 01:25:53 pm by TLM »
Logged
Particle board should be outlawed.

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: How to set icon for desktop shortcut in IceWM?
« Reply #1 on: May 25, 2009, 01: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
Re: How to set icon for desktop shortcut in IceWM?
« Reply #2 on: May 25, 2009, 01: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
Re: How to set icon for desktop shortcut in IceWM?
« Reply #3 on: May 25, 2009, 01: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
Re: How to set icon for desktop shortcut in IceWM?
« Reply #4 on: May 25, 2009, 02: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: 4133
Re: How to set icon for desktop shortcut in IceWM?
« Reply #5 on: May 25, 2009, 03: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: [Select]
mcedit /usr/share/applications/kompozer.desktop

Next, copy the following information:
Code: [Select]
[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
Re: How to set icon for desktop shortcut in IceWM?
« Reply #6 on: May 25, 2009, 04: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.