[kde-linux] making shell file clickable

Sylviane et Perry White spwhite at freesurf.ch
Mon Dec 5 05:10:53 UTC 2005

On Sunday 04 December 2005 18:50, Kevin Krammer wrote:
> On Sunday 04 December 2005 18:45, Sylviane et Perry White wrote:
> > Is there a *simple* way to execute that file by clicking on it (instead
> > of it displaying its text)
> If the script is executable it should also be executed when being clicked
> on.
Nothing happens
> Try creating a "link to application" icon on the desktop pointing to the
> script.
I dragged from konk and dropped (link here). Is it the right way?
Nothing happens when the script has extension .sh (Shell Script),
without extension (Plain Text File) it opens Kwrite.

I guess I must place something in the "Application Preference Order" of 
properties, but what?  (example .sh files in bin also had Kwrite!)

I would also prefer to avoid this desktop icon

> However, there are a couple if things you should be aware of:
> - the script's working directory will be $HOME by default
I must know where my app resides, will try to find out when first part of 
problem is solved.

> - the environment might differ as a shell in Konsole reads additional shell
> configuration files due to being an interactive shell
I belive that will not be a problem because my app can be launched from its 
icon on a machine with Qt4 installed, the shell wrapper is only there to make 
it work on a "naive" machine. 

Thanks a lot                Perry

More information about the kde-linux mailing list