forked from Mirrors/flatpak-builder
Add a simple profile.d snippet for XDG_DATA_DIRS
https://github.com/alexlarsson/xdg-app/issues/74tingping/wmclass
parent
e72beada8a
commit
27fdae4153
|
@ -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]
|
||||
|
|
|
@ -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)|" $< > $@
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue