Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #! play-only.sh
- FILE=/tmp/$(basename $0).pid
- trap 'rm -f $FILE;' EXIT
- if [ -e $FILE ]
- then
- echo "$FILE exists so script must exit"
- exit 2
- fi
- echo $$ > $FILE
- cvlc "$@"
- ERROR="[0xad4046f0] xcb_window window error: X server failure
- xdg-screensaver: Window 0x03400000 does not exist"
- trap 'rm -f $FILE;' EXIT
- if [ -e $ERROR ]
- then
- echo "user closed window"
- exit 3
- fi
- done
- exit 0
- #error message generated in terminal is:
- #"[0xad4046f0] xcb_window window error: X server failure
- xdg-screensaver: Window 0x03400000 does not exist"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement