Start X without authentication and open pcmanfm when directory is mounted
This commit is contained in:
@@ -4,4 +4,4 @@ ConditionKernelCommandLine=!text
|
||||
After=systemd-user-sessions.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/su --login -c "/usr/bin/startx -- :0 vt7"
|
||||
ExecStart=/bin/su --login -c "/usr/bin/startx -- :0 vt7 -ac"
|
||||
|
||||
@@ -55,6 +55,7 @@ if [ "$ACTION" = "add" -o "$ACTION" = "change" ]; then
|
||||
systemctl start $UNIT
|
||||
|
||||
echo "file://$MNT" "$BAS" >>$BOOKMARKS
|
||||
DISPLAY=:0.0 pcmanfm file://$MNT >/dev/null 2>&1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user