Add a simple profile.d snippet for XDG_DATA_DIRS

https://github.com/alexlarsson/xdg-app/issues/74
tingping/wmclass
David King 2015-05-15 16:55:25 +01:00
parent e72beada8a
commit 27fdae4153
3 changed files with 13 additions and 0 deletions

1
.gitignore vendored
View File

@ -29,6 +29,7 @@ xdg-app-helper
xdg-app-session-helper
doc/*.1
*~
profile/xdg-app.sh
xdg-app-dbus.[ch]
xdg-app-systemd-dbus.[ch]
xdg-app-resources.[ch]

View File

@ -146,3 +146,11 @@ endif
completiondir = $(datadir)/bash-completion/completions
completion_DATA = completion/xdg-app
EXTRA_DIST += $(completion_DATA)
profiledir = $(sysconfdir)/profile.d
profile_DATA = profile/xdg-app.sh
EXTRA_DIST += profile/xdg-app.sh.in
profile/xdg-app.sh: profile/xdg-app.sh.in
$(AM_V_GEN) $(SED) -e "s|\@localstatedir\@|$(localstatedir)|" \
-e "s|\@sysconfdir\@|$(sysconfdir)|" $< > $@

View File

@ -0,0 +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/share"
export XDG_DATA_DIRS