.lnk help


Forum: Apps
Topic: .lnk help
started by: opposume

Posted by opposume on Dec. 14 2004,19:03
I'm trying to get a script to run from the desktop through an icon, however, I can't seem to figure it out.  Any help would be greatly appreciated.  To add a little more info, I'm trying to run /opt/myndis.sh then open rdesktop...   Could somone please help?  Thank you.
Posted by clivesay on Dec. 14 2004,20:24
On the "Command" line try
Code Sample
sh /opt/myndis.sh

Or if it needs to be run as root
Code Sample
sudo sh /opt/myndis.sh


This is from memory. You can look in the menu file to see examples of other commands that run scripts.

HTH

Chris

Posted by clacker on Dec. 14 2004,20:26
try making the following file and putting it in /home/dsl/.xtdesktop along with an icon called mydis.gif

Code Sample
table Icon
Type: Program
Caption: myndis
Command: /opt/mydis.sh
Icon: .xtdesktop/mysis.gif
X: 60
Y: 270
end



Caption = name
Command = path to application plus arguments
Icon    = path to icon
X:      = pixels from left hand side of your screen
Y:      = pixels from the top of your screen

This should run your program.  If you are asking how to run more than one command from an icon, then you need to write a second shell script that calls the first and then calls whatever else you want to do.  If you want to run you program in a window, you need to have your command be

Command: rxvt -rv -T "MyDis" -e /opt/mydis.sh

If you're asking how to make the changes appear in the window after you add the lnk file, you need to hit <CTRL><ALT>DEL> to shutdown the x-server and then type startx to restart x.

Posted by bork on Dec. 16 2004,02:39
Quote
If you're asking how to make the changes appear in the window after you add the lnk file, you need to hit <CTRL><ALT>DEL> to shutdown the x-server and then type startx to restart x.

Can't you just select desktop => no icons in the menu, and then desktop => icons only, to restart xtdesk?

Posted by mikshaw on Dec. 16 2004,02:47
Yeah, I think so.  Under normal circumstances there should never be a need to restart the X server unless you've made changes to X itself.  We really need to push away from this mindset of restarting/rebooting for every change....in many situations all that is required is reloading configuration files.
Posted by clacker on Dec. 16 2004,14:45
I didn't know that.  Now knowing, I'll try to be less drastic in the future.
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.