#!/bin/sh #blatantly adapted from examples everywhere. #select multiple files and queue up for playback with xine. #optional zenity file selector for dock app. #quoted=$(echo -e `zenity --file-selection` | awk 'BEGIN { FS = "\n" } { printf "\"%s\" ", $1 }' | sed -e s#\"\"##) quoted=$(echo -e "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | awk 'BEGIN { FS = "\n" } { printf "\"%s\" ", $1 }' | sed -e s#\"\"##) #optional display for tvout on dual head X server, comment this out if using single display system. DISPLAY=:0.1; #queue it up with xine eval "/usr/bin/xine -f --enqueue $quoted"