added check for existance of $XDG_CONFIG_HOME
This commit is contained in:
parent
00cbc5d878
commit
39af10297a
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue