/usr/bin/fvwm-crystal.mplayer-wrapper is in fvwm-crystal 3.0.5.dfsg-5.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | #!/bin/sh
#
# mplayer wrapper for FVWM-Crystal
# Written by Dominique Michel <dominique_libre@sourceforge.net>
#
# This file is used by Music-mplayer to control this player.
#
# syntax:
# fvwm-crystal.mplayer-wrapper <type> <user id> <file>
# where
# type is one of "list", "file" or "dvd"
# user id is the ouput of "id -un"
# file is the file to send to mplayer (don't apply with "dvd")
#
# The 1 in the loadfile command is to append the playlist/file.
# If you want to replace it, replace the 1 by 0.
if [ "$1" = "list" ]; then
echo "loadlist \"$3\" 1" > /home/"$2"/.mplayer/pipe
else
if [ "$1" = "file" ]; then
echo "loadfile \"$3\" 1" > /home/"$2"/.mplayer/pipe
else
if [ "$1" = "dvd" ]; then
dvdtitles=`midentify dvd:// | grep ID_DVD_TITLES | sed -ne "s:ID_DVD_TITLES=::p"`
count=1
dvdpath="dvd://"
while [ "$count" -le "$dvdtitles" ]; do
echo "loadfile "$dvdpath""$count" 1" > /home/"$2"/.mplayer/pipe
count=$(($count+1))
done
fi
fi
fi
|