From 920cbbc24293353273717e5d29a716a9baa1de9a Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 13 Apr 2012 16:11:03 -0400 Subject: [PATCH] triggers: Test for gconftool-2 This was done for the rest of the triggers. --- src/triggers/triggers.d/0050gconf.trigger | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/triggers/triggers.d/0050gconf.trigger b/src/triggers/triggers.d/0050gconf.trigger index 8b4df908..03b73fb7 100755 --- a/src/triggers/triggers.d/0050gconf.trigger +++ b/src/triggers/triggers.d/0050gconf.trigger @@ -18,12 +18,10 @@ # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. -# IfExecutable: gconftool-2 -# LiteralMatch: /etc/gconf - -GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` -export GCONF_CONFIG_SOURCE - -for f in /etc/gconf/schemas/*.schemas; do - gconftool-2 --makefile-install-rule "$f" -done +if test -x "$(which gconftool-2 2>/dev/null)"; then + GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` + export GCONF_CONFIG_SOURCE + for f in /etc/gconf/schemas/*.schemas; do + gconftool-2 --makefile-install-rule "$f" + done +fi