[kde-linux] making shell file clickable
Kevin Krammer
kevin.krammer at gmx.at
Mon Dec 5 09:21:37 UTC 2005
On Monday 05 December 2005 06:10, Sylviane et Perry White wrote:
> 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
This is a bit vague.
If you have some debug output in your script, for example
echo "script started" >> /tmp/script.txt
Does it write it to the target file?
> I would also prefer to avoid this desktop icon
That is just one way of starting it, just to make sure we are talking about
the same thing.
> > 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.
Script parameter 0 usually contains script name and the path it was invoked
with.
> > - 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.
Can you attach the script?
Maybe you are assuming something like PATH including a certain directory added
to it in .bashrc, etc
Cheers,
Kevin
--
Kevin Krammer <kevin.krammer at gmx.at>
Qt/KDE Developer, Debian User
Moderator: www.mrunix.de (German), www.qtforum.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-linux/attachments/20051205/3b77f486/attachment.sig>
More information about the kde-linux
mailing list