From af5c905ec49085b7c396caf2c5166f0c34cbeb3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 3 Apr 2019 18:05:50 +0200 Subject: DEB: use _base folder for a distro instead of specific distros (squeeze and maverick). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- .../applications/amarok/debian/kubuntu-media-amarok | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 debian/_base/applications/amarok/debian/kubuntu-media-amarok (limited to 'debian/_base/applications/amarok/debian/kubuntu-media-amarok') diff --git a/debian/_base/applications/amarok/debian/kubuntu-media-amarok b/debian/_base/applications/amarok/debian/kubuntu-media-amarok new file mode 100644 index 000000000..dacf7fc55 --- /dev/null +++ b/debian/_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.3