HeavyAl
December 1st, 2006, 06:39 PM
Hey All,
I tried to write a script that allows me to mount my starcraft iso, then run starcraft (via wine) and then unmount it all without having to type it in every time but the problem is that starcraft starts to kick off before I get asked for the password to mount the iso thus causing it to fail with the 'cannot find cd' dialog.
Heres what I've got:
#!/bin/bash
gksudo mount "/home/me/.wine/drive_c/Program Files/Starcraft/BROODWAR.iso" /media/fakedrv -o loop
wine "/home/me/.wine/drive_c/Program Files/Starcraft/starcraft.exe"
gksudo umount /media/fakedrv
So what am I missing? Do I need to delay it somehow? Does it require some stop parameter to tell it to wait for the result of gksudo before going to the program?
Thanks for any help!
I tried to write a script that allows me to mount my starcraft iso, then run starcraft (via wine) and then unmount it all without having to type it in every time but the problem is that starcraft starts to kick off before I get asked for the password to mount the iso thus causing it to fail with the 'cannot find cd' dialog.
Heres what I've got:
#!/bin/bash
gksudo mount "/home/me/.wine/drive_c/Program Files/Starcraft/BROODWAR.iso" /media/fakedrv -o loop
wine "/home/me/.wine/drive_c/Program Files/Starcraft/starcraft.exe"
gksudo umount /media/fakedrv
So what am I missing? Do I need to delay it somehow? Does it require some stop parameter to tell it to wait for the result of gksudo before going to the program?
Thanks for any help!