Running shell scipts from GNOME
Mostafa Z. Afgani
mostafa.afgani at world.iu-bremen.de
Sun May 22 19:58:38 UTC 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ian Puleston wrote:
> Hi,
>
> I have FC4 test 2 installed on my PC, so this could be a bug in that,
> but I'd like to know if it's something that works OK in a stable release
> (note I couldn't install FC3 due to a couple of bugs that are fixed in
> FC4, hence the reason that I'm using the test release).
>
> What I'm trying to do is have a shell script executed by double-clicking
> the file icon in GNOME's Nautilus file browser. I have the following
> simple shell script named tst.sh and with "+x" attributes:
>
> #!/bin/sh -f
> echo Hello there
> read -p "Hit return: " tmpvar
>
> The default action for this file under Nautilus is "Open with Terminal",
> but when I double-click it or select "Open with Terminal" from its menu
> I just get a spinning hourglass for 30 seconds or so. If I then return
> to the main console screen (Ctrl-Alt-F1) I see the following warning was
> reported:
>
> Invalid argument: /home/ian/ZPT Test/Results/r1-GS-hv/tst.sh
>
> Ideas anyone?
>
> Ian
>
>
>
Goto Edit -> Preferences in any nautilus window; On the Behavior tab,
select "Ask each time".
Now, when you double click any executable file, you'll be given a
choice. Choose "Run in Terminal".
- -M
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFCkORuuOU3CtaQcGQRAqwtAJsEQaCK+4165gT8lQQai38CJArZkgCfeuVS
dRpfGnQjFqQQVNHNNXfo2mo=
=sVMA
-----END PGP SIGNATURE-----
More information about the users
mailing list