How to start SH script from CD/DVD using mouse double click?

Markus Schönhaber ubuntu-users at list-post.mks-mail.de
Mon Apr 26 13:16:27 UTC 2010


26.04.2010 13:38, Roland Turcan:

> 26.04.2010 13:16 - Markus Schönhaber

>> 26.04.2010 12:55, Roland Turcan:

>>> We have our application on CD where people by double click on setup.sh

> The fact is, that the Ubuntu 9.04 executes sh file after "asking" what
> to  do. The Ubuntu 10.04 has the same setting, but the "ask" dialog is
> shown  only in case when script file has "executable" permission, what
> is not possible on CD.

Ah, I missed the crucial part - "on CD" - above.
Nevertheless: I just inserted a Lucid beta CD and see the following

$ mount | fgrep Ubuntu
/dev/sr0 on /media/Ubuntu 10.04 amd64 type iso9660
(ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500)

$ ls -l /media/Ubuntu\ 10.04\ amd64/
insgesamt 186
-r-xr-xr-x 1 mks mks   1115 2010-03-29 21:43 cdromupgrade
dr-xr-xr-x 3 mks mks   2048 2010-03-30 08:33 dists
dr-xr-xr-x 3 mks mks   2048 2010-03-30 08:33 doc
dr-xr-xr-x 3 mks mks   2048 2010-03-30 08:34 install
dr-xr-xr-x 2 mks mks  14336 2010-03-30 08:34 isolinux
-r--r--r-- 1 mks mks 161632 2010-03-30 08:34 md5sum.txt
dr-xr-xr-x 2 mks mks   2048 2010-03-30 08:33 pics
dr-xr-xr-x 3 mks mks   2048 2010-03-30 08:33 pool
dr-xr-xr-x 2 mks mks   2048 2010-03-30 08:33 preseed
-r--r--r-- 1 mks mks    222 2010-03-30 08:33 README.diskdefines
lr-xr-xr-x 1 mks mks      1 2010-03-30 08:33 ubuntu -> .

cdromupgrade is marked executable and double-clicking it in Nautilus
makes it show the dialogue which asks whether I want to show or execute
the file.

> IMHO it must be a bug. I will report it.

Maybe your CD file-system is just missing the Rock Ridge extensions.
OTOH, if I mount the Lucid CD with the "norock" option, I see all files
marked executable by default. So maybe the important question is: how is
your CD mounted?

-- 
Regards
  mks




More information about the ubuntu-users mailing list