mirror of
https://github.com/klaxalk/i3-layout-manager.git
synced 2024-11-28 17:43:07 +01:00
added check for existance of $XDG_CONFIG_HOME
This commit is contained in:
parent
00cbc5d878
commit
39af10297a
@ -48,7 +48,11 @@ fi
|
||||
|
||||
# #}
|
||||
|
||||
LAYOUT_PATH=$XDG_CONFIG_HOME/i3-layout-manager/layouts
|
||||
if [ -z "$XDG_CONFIG_HOME" ]; then
|
||||
LAYOUT_PATH=~/.layouts
|
||||
else
|
||||
LAYOUT_PATH="$XDG_CONFIG_HOME/i3-layout-manager/layouts"
|
||||
fi
|
||||
|
||||
# make directory for storing layouts
|
||||
mkdir -p $LAYOUT_PATH > /dev/null 2>&1
|
||||
|
Loading…
Reference in New Issue
Block a user