#!/bin/bash #Company: PowerCraft Technology #Author: Copyright Jelle de Jong #Note: Please send me an email if you enhanced this script #Version: 0.0.2 #Date: 30-07-2006 / 18-10-2008 / 2009-01-01 #System: Ubuntu/Debian GNU/Linux #Category Thunar scripts #Name: Play DVD #Description: Play a directory that contains dvd movie #Command: /usr/share/pct-thunar-scripts/scripts/play-dvd %f #Patterns: * #Directories: True # Did the script work for you? # Yes # Yes, but with some errors # Yes, but I had to change some things # Not at all # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301, USA. # xfmedia dvd:/"$1" # gxine dvd:/"$1" # xfce4-terminal --disable-server --hide-menubar --hide-toolbars --title="DVD Player" --execute /usr/share/pct-thunar-scripts/scripts/play-dvd %f # totem dvd:/"$1" # totem "$1" dvd://0 dvd://1 dvd://2 dvd://3 dvd://4 dvd://5 dvd://6 dvd://7 dvd://8 dvd://9 # totem-xine --no-existing-session "$1" dvd://0,0,0 dvd://1,1,1 dvd://2,3,1 dvd://3,0,0 dvd://4,0,0 dvd://5,0,0 dvd://6,0,0 dvd://7,0,0 dvd://8,0,0 dvd://9,0,0 # totem-xine --no-existing-session dvd:/"$1" # totem-gstreamer --no-existing-session "$1" # totem dvd://media/disk/New Folder/DVD_S2D1_MOUNT/VIDEO_TS # totem /media/disk/DVD_S2D1_MOUNT/ dvd://0 dvd://1 dvd://2 dvd://3 dvd://4 dvd://5 dvd://6 dvd://7 dvd://8 dvd://9 TEXTDOMAINDIR=/usr/share/locale TEXTDOMAIN=${0##*/} NAME=$"Play DVD" DESCRIPTION=$"Play a directory that contains dvd movie" cecho "green" $"program:" echo "$0" cecho "green" $"description:" echo "$DESCRIPTION" echo "$1" [ -e $HOME/.dvdcss ] && rm -R $HOME/.dvdcss totem-xine dvd:/"$1" state=$? if [ $state != 0 ] then echo $"program closed with error:$state, closing after 60 seconds" sleep 60 fi exit