From 9bcce4f2713ae6bad2d7c1020f1ea42d588a20c7 Mon Sep 17 00:00:00 2001 From: Stefano Facchini Date: Fri, 1 Feb 2013 19:33:20 +0100 Subject: [PATCH] Fix typo in gnome-shell-extension-prefs Environment variables should be checked for zero length, instead of non-zero. This prevented the script to run correctly in a jhbuild shell for example. https://bugzilla.gnome.org/show_bug.cgi?id=693031 --- src/gnome-shell-extension-prefs.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gnome-shell-extension-prefs.in b/src/gnome-shell-extension-prefs.in index acc2cb171..a1690a62f 100644 --- a/src/gnome-shell-extension-prefs.in +++ b/src/gnome-shell-extension-prefs.in @@ -1,12 +1,12 @@ #!/bin/sh -if [ -n "$GI_TYPELIB_PATH" ]; then +if [ -z "$GI_TYPELIB_PATH" ]; then export GI_TYPELIB_PATH=@pkglibdir@ else export GI_TYPELIB_PATH=@pkglibdir@:$GI_TYPELIB_PATH fi -if [ -n "$LD_LIBRARY_PATH" ] ; then +if [ -z "$LD_LIBRARY_PATH" ] ; then export LD_LIBRARY_PATH=@pkglibdir@ else export LD_LIBRARY_PATH=@pkglibdir@:$LD_LIBRARY_PATH