[PC-BSD Commits] r7303 - pcbsd/current/src-qt4/pc-xdgutil

svn at pcbsd.org svn at pcbsd.org
Mon Jul 26 11:26:57 PDT 2010


Author: kris
Date: 2010-07-26 11:26:57 -0700 (Mon, 26 Jul 2010)
New Revision: 7303

Modified:
   pcbsd/current/src-qt4/pc-xdgutil/pc-xdgutil
Log:

Updated pc-xdgutil, copies desktop-directories / menu xdg files now for KDE4/Gnome/XFCE4



Modified: pcbsd/current/src-qt4/pc-xdgutil/pc-xdgutil
===================================================================
--- pcbsd/current/src-qt4/pc-xdgutil/pc-xdgutil	2010-07-26 16:51:06 UTC (rev 7302)
+++ pcbsd/current/src-qt4/pc-xdgutil/pc-xdgutil	2010-07-26 18:26:57 UTC (rev 7303)
@@ -18,6 +18,24 @@
 # Copy over the PC-BSD XDG menu structure 
 update_xdg_menu() {
 
+	# Copy over the dir files
+	if [ -d "/usr/local/share/desktop-directories" ] ; then
+		cp ${PROGDIR}/desktop-dirs/*.directory /usr/local/share/desktop-directories/
+	fi
+	if [ -d "/usr/local/kde4/share/desktop-directories" ] ; then
+		cp ${PROGDIR}/desktop-dirs/*.directory /usr/local/kde4/share/desktop-directories/
+	fi
+
+	# Start copying the .menu files
+mFiles="/usr/local/etc/xdg/menus/gnome-applications.menu \
+/usr/local/etc/xdg/menus/xfce-applications.menu \
+/usr/local/kde4/etc/xdg/menus/applications.menu"
+		
+	for i in $mFiles
+	do
+		if [ -e "${i}" ] ; then cp ${PROGDIR}/applications.menu ${i} ; fi
+	done
+	
 }
 
 # Re-apply files which are shipped modified from port defaults



More information about the Commits mailing list