summaryrefslogtreecommitdiff
path: root/etc/mklocaluser.d/60-itzks-systems-roamingworkstation_gvfs-symlink
blob: 6253eda7240d60bc3f17a3260e82553c5b21ba91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

UIDNUMBER=$(id -u $USER)
GIDNUMBER=$(id -g $USER)

if [ -n "$UIDNUMBER" ]; then
    XDG_RUNTIME_DIR="/run/user/$UIDNUMBER"

    ln -s "$XDG_RUNTIME_DIR/gvfs/" "/home/$USER/Eingebundene-Orte"
    chown -h ${UIDNUMBER}:${GIDNUMBER} "/home/$USER/Eingebundene-Orte"

fi