[PC-BSD Commits] r12136 - pcbsd/current/src-sh/pc-metapkgmanager

svn at pcbsd.org svn at pcbsd.org
Tue Aug 16 15:44:21 PDT 2011


Author: kris
Date: 2011-08-16 15:44:21 -0700 (Tue, 16 Aug 2011)
New Revision: 12136

Modified:
   pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager
Log:

Make sure we share fonts / cursors with linux apps



Modified: pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager
===================================================================
--- pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager	2011-08-16 22:28:12 UTC (rev 12135)
+++ pcbsd/current/src-sh/pc-metapkgmanager/pc-metapkgmanager	2011-08-16 22:44:21 UTC (rev 12136)
@@ -92,6 +92,16 @@
 	# Apply our PC-BSD specific xdg menu entry files
 	/usr/local/bin/pc-xdgutil updatemenu >>${LOGFILE} 2>>${LOGFILE}
 
+	# Hack to ensure that we share cursors / icons between linux / FBSD apps
+	if [ ! -h "/compat/linux/usr/share/icons" ] ; then
+		rm -rf /compat/linux/usr/share/icons
+		ln -fs /usr/local/lib/X11/icons /compat/linux/usr/share/icons
+	fi
+	if [ ! -h "/compat/linux/usr/share/fonts" ] ; then
+		rm -rf /compat/linux/usr/share/fonts
+		ln -fs /usr/local/lib/X11/fonts /compat/linux/usr/share/fonts
+	fi
+
 	# If a post-install script, run it now
 	if [ -e "${MPDIR}/${_apkg}/post-install.sh" ] ; then
 		sh ${MPDIR}/${_apkg}/post-install.sh >/dev/null 2>/dev/null



More information about the Commits mailing list