[gnome-games] Safely set LD_LIBRARY_PATH



commit c82181c6a4c38e52a1cd0b2f65e37e8bbd78ff4b
Author: Christian Persch <chpe gnome org>
Date:   Fri Nov 6 20:54:08 2009 +0100

    Safely set LD_LIBRARY_PATH
    
    Make sure LD_LIBRARY_PATH never ends with ':'.

 lightsoff/src/lightsoff.in |    2 +-
 swell-foop/swell-foop.in   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lightsoff/src/lightsoff.in b/lightsoff/src/lightsoff.in
index 9fbf401..a424080 100644
--- a/lightsoff/src/lightsoff.in
+++ b/lightsoff/src/lightsoff.in
@@ -1,4 +1,4 @@
 #!/usr/bin/env sh
 
-export LD_LIBRARY_PATH=%pkglibdir%:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH="%pkglibdir%${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
 /usr/bin/env seed %pkgdatadir%/lightsoff/main.js
diff --git a/swell-foop/swell-foop.in b/swell-foop/swell-foop.in
index 93bbddb..613c557 100644
--- a/swell-foop/swell-foop.in
+++ b/swell-foop/swell-foop.in
@@ -1,4 +1,4 @@
 #!/usr/bin/env sh
 
-export LD_LIBRARY_PATH=%pkglibdir%:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH="%pkglibdir%${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
 /usr/bin/env seed %pkgdatadir%/swell-foop/main.js



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]