Export XDG_PICTURES_DIR

This commit is contained in:
Rodolphe Bréard 2020-12-19 17:01:26 +01:00
parent e79d446eaf
commit 4f447cbdfc
3 changed files with 8 additions and 0 deletions

6
.xdg_set_env.sh Executable file
View file

@ -0,0 +1,6 @@
XDG_USER_DIR_FILE="$HOME/.config/user-dirs.dirs"
if [ -f "$XDG_USER_DIR_FILE" ]; then
. "$XDG_USER_DIR_FILE"
export XDG_PICTURES_DIR="$XDG_PICTURES_DIR"
fi

View file

@ -2,6 +2,7 @@
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
[ -f ~/.setpath.sh ] && . ~/.setpath.sh
[ -f ~/.set_compose_key.sh ] && . ~/.set_compose_key.sh
[ -f ~/.xdg_set_env.sh ] && . ~/.xdg_set_env.sh
hash xcompmgr 2>/dev/null && xcompmgr &
hash xscreensaver 2>/dev/null && xscreensaver -no-splash &

View file

@ -9,5 +9,6 @@ if [ -f "$COMPOSE_KEY_FILE" ]; then
COMPOSE_KEY=$(cat "$COMPOSE_KEY_FILE")
export XKB_DEFAULT_OPTIONS="compose:$COMPOSE_KEY"
fi
[ -f ~/.xdg_set_env.sh ] && . ~/.xdg_set_env.sh
/usr/bin/sway $*