From 9b2075d9b89fc628c447fbb98f43ef72e4a9c81d Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 10 Jul 2011 16:17:43 -0500 Subject: Initial import from old SVN repository Note that only the Debian and Ubuntu folders were preserved --- .../applications/amarok/debian/kubuntu-media-amarok | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ubuntu/lucid_automake/applications/amarok/debian/kubuntu-media-amarok (limited to 'ubuntu/lucid_automake/applications/amarok/debian/kubuntu-media-amarok') diff --git a/ubuntu/lucid_automake/applications/amarok/debian/kubuntu-media-amarok b/ubuntu/lucid_automake/applications/amarok/debian/kubuntu-media-amarok new file mode 100644 index 000000000..dacf7fc55 --- /dev/null +++ b/ubuntu/lucid_automake/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 + -- cgit v1.2.3