Start X without authentication and open pcmanfm when directory is mounted

This commit is contained in:
TomasM
2019-01-29 11:13:13 +00:00
parent 9cb6a19582
commit cb7ecf8b96
2 changed files with 2 additions and 1 deletions
@@ -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"
+1
View File
@@ -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