We have moved to a new Sailfish OS Forum. Please start new discussions there.
1 | initial version | posted 2014-02-13 13:43:20 +0200 |
While waiting for the a solution to the question https://together.jolla.com/question/3607/music-player-sleep-function-with-timer/ it would be useful to be able to stop or close the mediaplayer (music player) or the internet radio through a simple bash shell script.
Could someone please review and improve the following simple bash script? I called it "sleepaudio.sh", it runs as nemo user (perms 755) and just kills the mediaplayer/quickradio processes after a given sleeptime of X minutes. Would be nice, if I knew how to run this shell script from the GUI instead of starting it from the command line on the terminal. Any hint?
#!/bin/bash sleeptime=$((10*60)) if [ $# -eq 0 ] then sleeptime=$(($1*60)) fi sleep $sleeptime killall -9 jolla-mediaplayer killall -9 harbour-quickradio
2 | No.2 Revision |
While waiting for the a solution to the question https://together.jolla.com/question/3607/music-player-sleep-function-with-timer/ it would be useful to be able to stop or close the mediaplayer (music player) or the internet radio through a simple bash shell script.
Could someone please review and improve the following simple bash script? I called it "sleepaudio.sh", it runs as nemo user (perms 755) and just kills the mediaplayer/quickradio processes after a given sleeptime of X minutes. Would be nice, if I knew how to run this shell script from the GUI instead of starting it from the command line on the terminal. Any hint?
#!/bin/bash sleeptime=$((10*60)) if [ $# -eq 0 ] then sleeptime=$(($1*60)) fi sleep $sleeptime killall -9 jolla-mediaplayer killall -9 harbour-quickradio
3 | retagged |
While waiting for the a solution to the question https://together.jolla.com/question/3607/music-player-sleep-function-with-timer/ it would be useful to be able to stop or close the mediaplayer (music player) or the internet radio through a simple bash shell script.
Could someone please review and improve the following simple bash script? I called it "sleepaudio.sh", it runs as nemo user (perms 755) and just kills the mediaplayer/quickradio processes after a given sleeptime of X minutes. Would be nice, if I knew how to run this shell script from the GUI instead of starting it from the command line on the terminal. Any hint?
#!/bin/bash sleeptime=$((10*60)) if [ $# -eq 0 ] then sleeptime=$(($1*60)) fi sleep $sleeptime killall -9 jolla-mediaplayer killall -9 harbour-quickradio