[Lunar-commits] <moonbase> gnumeric: Add some logic to the rc file to make it less error prone
Moritz Heiber
moe at lunar-linux.org
Thu Dec 25 23:41:51 CET 2008
commit 62ed716ec29ddea45e69e5c64c4e658a8984a4c2
Author: Moritz Heiber <moe at lunar-linux.org>
Date: Thu Dec 25 23:41:51 2008 +0100
gnumeric: Add some logic to the rc file to make it less error prone
---
gnome2/apps/gnumeric/profile.d/gnumeric.rc | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/gnome2/apps/gnumeric/profile.d/gnumeric.rc b/gnome2/apps/gnumeric/profile.d/gnumeric.rc
index 6b73ea2..0c350af 100644
--- a/gnome2/apps/gnumeric/profile.d/gnumeric.rc
+++ b/gnome2/apps/gnumeric/profile.d/gnumeric.rc
@@ -1,2 +1,8 @@
export PATH=$PATH:/opt/lunar/gnumeric/bin
-export XDG_DATA_DIRS=$XDG_DATA_DIRS:/opt/lunar/gnumeric/share
+
+# We need a little logic otherwise this might break
+if [ -z $XDG_DATA_DIRS ] ; then
+ export XDG_DATA_DIRS="/usr/share:/opt/lunar/gnumeric/share"
+else
+ export XDG_DATA_DIRS="$XDG_DATA_DIRS:/opt/lunar/gnumeric/share"
+fi
More information about the Lunar-commits
mailing list