[PC-BSD Commits] r4086 - pbibuild/modules/multimedia/gxmms2/overlay-dir/bin

svn at pcbsd.org svn at pcbsd.org
Wed Jun 10 11:31:26 PDT 2009


Author: kris
Date: 2009-06-10 11:31:26 -0700 (Wed, 10 Jun 2009)
New Revision: 4086

Modified:
   pbibuild/modules/multimedia/gxmms2/overlay-dir/bin/xmms2-admin.sh
Log:

Cleanup xmms-2admin to use .kde4



Modified: pbibuild/modules/multimedia/gxmms2/overlay-dir/bin/xmms2-admin.sh
===================================================================
--- pbibuild/modules/multimedia/gxmms2/overlay-dir/bin/xmms2-admin.sh	2009-06-10 18:29:08 UTC (rev 4085)
+++ pbibuild/modules/multimedia/gxmms2/overlay-dir/bin/xmms2-admin.sh	2009-06-10 18:31:26 UTC (rev 4086)
@@ -6,6 +6,14 @@
 
 PROGDIR=CHANGEME
 
+if [ -e "~/.kde4" ]
+then
+   KDEDIR=".kde4"
+else
+   KDEDIR=".kde"
+fi
+
+
 mkdir -p ~/.config/xmms2 2>/dev/null
 
 # Function to start xmms2d in the background
@@ -26,12 +34,12 @@
 
 # Function enable startup of xmms2d in the background
 enable_xmms2d() {
-  ln -s /usr/local/bin/xmms2d ~/.kde/Autostart/xmms2d
+  ln -s /usr/local/bin/xmms2d ~${KDEDIR}/Autostart/xmms2d
 };
 
 # Function disable startup of xmms2d in the background
 disable_xmms2d() {
-  rm ~/.kde/Autostart/xmms2d
+  rm ~/${KDEDIR}/Autostart/xmms2d
 };
 
 # Display help about this manager
@@ -67,7 +75,7 @@
 
 fi
 
-ls ~/.kde/Autostart/xmms2d >/dev/null 2>/dev/null
+ls ~/${KDEDIR}/Autostart/xmms2d >/dev/null 2>/dev/null
 if [ "$?" = "0" ]
 then
   ENABLEOPT="disable"



More information about the Commits mailing list