Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: .lnk help, running scripts from links on desktop< Next Oldest | Next Newest >
opposume Offline





Group: Members
Posts: 4
Joined: Dec. 2004
Posted: Dec. 14 2004,19:03 QUOTE

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.
Back to top
Profile PM 
clivesay Offline





Group: Guests
Posts: 935
Joined: Dec. 2003
Posted: Dec. 14 2004,20:24 QUOTE

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
Back to top
Profile PM MSN YIM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Dec. 14 2004,20:26 QUOTE

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.
Back to top
Profile PM 
bork Offline





Group: Members
Posts: 8
Joined: Oct. 2004
Posted: Dec. 16 2004,02:39 QUOTE

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?
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Dec. 16 2004,02:47 QUOTE

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.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
5 replies since Dec. 14 2004,19:03 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: .lnk help

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code