[PC-BSD Commits] r7304 - in pcbsd/current/src-qt4/pc-xdgutil: . menus

svn at pcbsd.org svn at pcbsd.org
Mon Jul 26 12:14:31 PDT 2010


Author: kris
Date: 2010-07-26 12:14:31 -0700 (Mon, 26 Jul 2010)
New Revision: 7304

Added:
   pcbsd/current/src-qt4/pc-xdgutil/menus/xfce-applications.menu
Modified:
   pcbsd/current/src-qt4/pc-xdgutil/pc-xdgutil
   pcbsd/current/src-qt4/pc-xdgutil/pc-xdgutil.pro
Log:

Added unique xfce applications menu, needed for their logout and other menu entries



Modified: pcbsd/current/src-qt4/pc-xdgutil/pc-xdgutil
===================================================================
--- pcbsd/current/src-qt4/pc-xdgutil/pc-xdgutil	2010-07-26 18:26:57 UTC (rev 7303)
+++ pcbsd/current/src-qt4/pc-xdgutil/pc-xdgutil	2010-07-26 19:14:31 UTC (rev 7304)
@@ -33,7 +33,14 @@
 		
 	for i in $mFiles
 	do
-		if [ -e "${i}" ] ; then cp ${PROGDIR}/applications.menu ${i} ; fi
+		if [ -e "${i}" ] ; then 
+			uMenu=`basename $i`
+			if [ -e "${PROGDIR}/${uMenu}" ] ; then
+				cp ${PROGDIR}/${uMenu} ${i}
+			else
+				cp ${PROGDIR}/applications.menu ${i}
+			fi
+		fi
 	done
 	
 }

Modified: pcbsd/current/src-qt4/pc-xdgutil/pc-xdgutil.pro
===================================================================
--- pcbsd/current/src-qt4/pc-xdgutil/pc-xdgutil.pro	2010-07-26 18:26:57 UTC (rev 7303)
+++ pcbsd/current/src-qt4/pc-xdgutil/pc-xdgutil.pro	2010-07-26 19:14:31 UTC (rev 7304)
@@ -8,7 +8,7 @@
 ddirs.files = desktop-dirs
 
 xdgmenu.path = /usr/local/share/pc-xdgutil
-xdgmenu.files = menus/applications.menu
+xdgmenu.files = menus/*.menu
 
 INSTALLS += scripts dochmod ddirs xdgmenu
 



More information about the Commits mailing list