From 11394aecd1f906fee2ebd2b90412aeba4651fbff Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 3 Apr 2019 22:56:40 +0900 Subject: DEB: use _base folder for a distro instead of specific distros (squeeze and maverick). Signed-off-by: Michele Calgaro --- .../applications/amarok/debian/kubuntu-media-amarok | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ubuntu/_base/applications/amarok/debian/kubuntu-media-amarok (limited to 'ubuntu/_base/applications/amarok/debian/kubuntu-media-amarok') diff --git a/ubuntu/_base/applications/amarok/debian/kubuntu-media-amarok b/ubuntu/_base/applications/amarok/debian/kubuntu-media-amarok new file mode 100644 index 000000000..dacf7fc55 --- /dev/null +++ b/ubuntu/_base/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.1