satelliteuser083 Posted July 17, 2007 Report Share Posted July 17, 2007 I was wondering if it is possible to execute a script via a link to an icon on the desktop, rather than having to use a konsole (hope this makes sense :unsure: ). If it is, how do I set up the link? Thanks. Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted July 17, 2007 Report Share Posted July 17, 2007 Just create the icon (Application launcher) and enter the script path as the path of the application to launch. If you want to see the application's output, you may even check the checkbox saying to execute the command in a terminal window. Yves. Quote Link to comment Share on other sites More sharing options...
pmpatrick Posted July 18, 2007 Report Share Posted July 18, 2007 Also, make sure that the very first space on the first line of your script starts with: #!/bin/bash You can't have any whitespace(or anything else) before that or the script won't execute with a mouse click although it will execute fine from the command line. At least that's true for more recent versions of kde. Apparently, kde doesn't pick up the script as executable unless #!/bin/bash are the very first characters. Quote Link to comment Share on other sites More sharing options...
satelliteuser083 Posted July 23, 2007 Author Report Share Posted July 23, 2007 Great, it works. Many thanks to you both Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.