Apps :: Creating a working desktop icon



I set up an old laptop for the son of friends. When doing so, I hadn't thought of including filesharing software (a function of my age).

After a discussion with him, I installed limewire4.8.0.dsl for him. Although I don't know how to use the application, I am able at least to open it successfully from the myDSL menu.

Installing the application didn't create a Limewire icon on the desktop, so I'm trying to create one of those myself.

I've managed to get the appropriate icon on the desktop, but I haven't been able to find the path to the executable file. I searched for all files on the system with "limewire" in them and found "/usr/bin/limewire". I assumed that was it, but using that as my command didn't work. I thought it might be a permissions problem, so I made the file executable by all. That didn't help.

Can someone tell me what command I should use to get the icon to open the application?

What I did was go to home/dsl/fluxbox and open the fluxbox menu..this is an editable text file for the dsl menu..it will show the path used when you click the menu item..find your item copy it to the icon command line and try...I used this to create a shortcut to pppdial, and for the wmdrawer shortcuts..may work for you. oh.. just in case to view hidden files click "H"
Thanks for taking the trouble to reply, lovdsl.

Just to make things difficult, I'm using the other installed window manager, jwm.

I had thought of trying the same thing as you suggest, but didn't know which was the equivalent file for jwm. I tried to right click on the Limewire item in the myDSL menu, hoping that would identify the relevant file, but all it did was open the application in the same way that it does if I left click on it.

Thanks again,

Leslie

Sorry, I am less familiar with jwm but think you can look on the menu and find emelfm as a super user and open the file manager...in the corner is a "H" which shows the hidden files in home/dsl..look for fluxbox and rightclick open...then open menu..it will open in the bever text editor..this is an editable menu, you should find the name which is the name that lists in the desktop menu where you click to open the program....next to it is the path to the program which is used when you click the menu item...I think you can use it for your icon...will switch and have a look..the jwmrc file is I think the jwm menu..not sure the path would be different..forgot to look.hope this helps

adding...ya I switched to jwm and near the top of the menu see file managers..if you just want to look you can use emelfm but to edit or copy the command line you need to use emelfm as a super user..do not cut the path as this is the editable jwm menu...in midnight commander I think you just double click to open the files..if that is the file manager you choose to  use with jwm

once you find the path you can go to the icon properties and add the path after command: or in full path box in the icon tool when creating

Perhaps this is clearer
In jwm rightclick for the menu or click the dsl button
choose file managers
click either emelfm as a superuser or midnight commander as super
scroll to find jwmrc and right click and open
in midnight commander doubleclick to open and choose view from the menu at the botttom
scroll down the menu and find the name of the program whose path you seek  
or open fluxbox and open menu and do the same
ie: from fluxbox menu
[exec] (imagemagick) {/opt/imagemagick/bin/display}

ie: from jwmrc
<Program label="imagemagick"> /opt/imagemagick/bin/display </Program>

leftclick and drag to copy the path
/opt/imagemagick/bin/display

as you can see the path is the same

now go to the desktop menu click setup/desktop/icontool/new
click the left and right mouse buttons to paste the path into the fullpath box
give the icon a name and choose an icon and click ok

you should now have an icon for your program
this may be more helpfull.

Next Page...
original here.