summaryrefslogtreecommitdiffstats
path: root/ubuntu/raring/applications/amarok.cmake/debian/kubuntu-media-amarok
blob: dacf7fc55620c47b9eda754c17a0710b9c8a4a1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

DEVICE=$@

if [ -n "$DEVICE" ];then
	if [ ${DEVICE:0:7} = "audiocd" ]; then
		amarok --cdplay ${DEVICE#*=}
	elif [ ${DEVICE:0:1} = "/" ]; then
		amarok --cdplay `dcop kded mediamanager fullList | grep -B1 $DEVICE | head -n1`
	else
		amarok --cdplay /dev/cdrom
	fi
else
        amarok --cdplay /dev/cdrom
fi