10 lines
No EOL
456 B
Bash
10 lines
No EOL
456 B
Bash
#!/bin/bash
|
|
|
|
# extra precautions until run_hooks_as_user: true is fixed
|
|
if [ -n "$SUDO_USER" ] && [ "$EUID" == 0 ]; then
|
|
exec su "$SUDO_USER" $0;
|
|
fi
|
|
|
|
# An explicit „Does the .config/user-dirs.dirs file already exist” check used to be here, but it is apparently unnecessary, as it turns out that XDG it will only populate paths that weren't configured yet, or were pointing to removed folders. Keeping it for historical reference.
|
|
|
|
xdg-user-dirs-update |