[PC-BSD Commits] r7281 - pcbsd/current/src-qt4/pc-su

svn at pcbsd.org svn at pcbsd.org
Sun Jul 25 07:58:15 PDT 2010


Author: kris
Date: 2010-07-25 07:58:15 -0700 (Sun, 25 Jul 2010)
New Revision: 7281

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

Provide error message if no graphical switch user utility is available



Modified: pcbsd/current/src-qt4/pc-su/pc-su
===================================================================
--- pcbsd/current/src-qt4/pc-su/pc-su	2010-07-25 14:57:06 UTC (rev 7280)
+++ pcbsd/current/src-qt4/pc-su/pc-su	2010-07-25 14:58:15 UTC (rev 7281)
@@ -14,6 +14,10 @@
                 gksu $@
                 exit $? 
         fi
+	
+	# If no utility could be found...
+	echo "No graphical switch-user utility found!"
+	exit 1
 else
 	${@}
 fi



More information about the Commits mailing list