summaryrefslogtreecommitdiffstats
path: root/debian/wheezy/applications/amarok/debian/kubuntu-media-amarok
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-10 16:13:23 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-10 16:13:23 -0500
commit05a59ddb0228494ba27bacbe7d391f06725b0689 (patch)
tree7c028104ac86c3b1e43ea3584528939bd8802426 /debian/wheezy/applications/amarok/debian/kubuntu-media-amarok
parenta3210d42cfc1a2eb722dd85b0ddac0a2177f26ab (diff)
downloadtde-packaging-05a59ddb0228494ba27bacbe7d391f06725b0689.tar.gz
tde-packaging-05a59ddb0228494ba27bacbe7d391f06725b0689.zip
Split wheezy off of squeeze
Diffstat (limited to 'debian/wheezy/applications/amarok/debian/kubuntu-media-amarok')
-rw-r--r--debian/wheezy/applications/amarok/debian/kubuntu-media-amarok16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/wheezy/applications/amarok/debian/kubuntu-media-amarok b/debian/wheezy/applications/amarok/debian/kubuntu-media-amarok
new file mode 100644
index 000000000..dacf7fc55
--- /dev/null
+++ b/debian/wheezy/applications/amarok/debian/kubuntu-media-amarok
@@ -0,0 +1,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
+