mirror of
https://github.com/klaxalk/i3-layout-manager.git
synced 2025-06-21 03:57:42 +02: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
|
# make directory for storing layouts
|
||||||
mkdir -p $LAYOUT_PATH > /dev/null 2>&1
|
mkdir -p $LAYOUT_PATH > /dev/null 2>&1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user