This seems like it should be so simple, i think i'm just missing some command.
When i plug my ipod in, i would like the dialog that shows up to list a choice where one is to run a script i wrote (it syncs my google calendar to my ipod). So i go in Kcontrol and go to storage media->notifications, and add a new notification where the command is "/home/jet/myscript.sh" where my script resides. now if I hit f2 (run command dialog in kubuntu) and type this command exactly then the script runs fine and all is good, but when i choose the option and it runs from the media load menu, I get
"Error - KIOExec
/media/ipod is a folder, but a file was expected"
and just have to hit ok.
This is so strange to me, why doesn't the script run just like when i double click it or when i run it in the terminal, or when i run it from the kde command dialog?! arg
so, i tried adding the following before the command:
kdesu /hoem/jet/scriptname.sh
bash /home/jet/scriptname.sh
kdesu -u jet scriptname.sh
kdesu -u jet scriptname.sh
same error all the time.
anyway, if somebody can help that would be great!
thanks,
jet
This is also posted at the ubuntuforums.org, but there was no response there (posted 5 days ago).
http://www.ubuntuforums.org/showthread.php?t=253222
When i plug my ipod in, i would like the dialog that shows up to list a choice where one is to run a script i wrote (it syncs my google calendar to my ipod). So i go in Kcontrol and go to storage media->notifications, and add a new notification where the command is "/home/jet/myscript.sh" where my script resides. now if I hit f2 (run command dialog in kubuntu) and type this command exactly then the script runs fine and all is good, but when i choose the option and it runs from the media load menu, I get
"Error - KIOExec
/media/ipod is a folder, but a file was expected"
and just have to hit ok.
This is so strange to me, why doesn't the script run just like when i double click it or when i run it in the terminal, or when i run it from the kde command dialog?! arg
so, i tried adding the following before the command:
kdesu /hoem/jet/scriptname.sh
bash /home/jet/scriptname.sh
kdesu -u jet scriptname.sh
kdesu -u jet scriptname.sh
same error all the time.
anyway, if somebody can help that would be great!
thanks,
jet
This is also posted at the ubuntuforums.org, but there was no response there (posted 5 days ago).
http://www.ubuntuforums.org/showthread.php?t=253222
Comment