xdg user dirs will now be automatically created on the tilde

This commit is contained in:
sose 2020-08-22 18:15:12 -07:00
parent 52a2b3ca32
commit 4ba5b9d215
1 changed files with 5 additions and 0 deletions

View File

@ -12,7 +12,12 @@ if ( sshfs {{ TILDE_USERNAME }}@{{ TILDE_NAME }}:/home/{{ TILDE_USERNAME }} {{ T
then
export XDG_CONFIG_HOME="{{ USER_HOMEDIR }}/.config"
export XDG_DATA_HOME="{{ USER_HOMEDIR }}/.local/share"
cd {{ TILDE_HOMEDIR }}
# TODO: Give user more control over xdg user dir creation
mkdir Desktop Download Music Pictures Public Templates Videos >/dev/null
startx
else
echo "Failed to mount, aborting..."