summaryrefslogtreecommitdiff
path: root/profile
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2015-06-24 09:31:50 +0200
committerAlexander Larsson <alexl@redhat.com>2015-06-24 09:31:50 +0200
commitc7a05ae781f05ac9eef53d746e692170d8287c5f (patch)
tree4fe0fd04f64d5e2264f7bcfb987c4d7aaae97705 /profile
parent0774aa39e2a80a7ec2a09b0f99b733ed92b7c0af (diff)
downloadxdg-app-c7a05ae781f05ac9eef53d746e692170d8287c5f.tar.gz
profile: Don't override pre-existing XDG_DATA_DIRS env vars
Diffstat (limited to 'profile')
-rw-r--r--profile/xdg-app.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile/xdg-app.sh.in b/profile/xdg-app.sh.in
index 2dc212e..4c86566 100644
--- a/profile/xdg-app.sh.in
+++ b/profile/xdg-app.sh.in
@@ -1,4 +1,4 @@
# @sysconfdir@/profile.d/xdg-app.sh - set XDG_DATA_DIRS
-XDG_DATA_DIRS="$HOME/.local/share/xdg-app/exports/share:@localstatedir@/xdg-app/exports/share/:/usr/local/share/:/usr/share/"
+XDG_DATA_DIRS="${XDG_DATA_DIRS:-$HOME/.local/share/xdg-app/exports/share:@localstatedir@/xdg-app/exports/share/:/usr/local/share/:/usr/share/}"
export XDG_DATA_DIRS