Start X without authentication and open pcmanfm when directory is mounted

pull/65/head
TomasM 2019-01-29 11:13:13 +00:00
parent 9cb6a19582
commit cb7ecf8b96
2 changed files with 2 additions and 1 deletions

View File

@ -4,4 +4,4 @@ ConditionKernelCommandLine=!text
After=systemd-user-sessions.service After=systemd-user-sessions.service
[Service] [Service]
ExecStart=/bin/su --login -c "/usr/bin/startx -- :0 vt7" ExecStart=/bin/su --login -c "/usr/bin/startx -- :0 vt7 -ac"

View File

@ -55,6 +55,7 @@ if [ "$ACTION" = "add" -o "$ACTION" = "change" ]; then
systemctl start $UNIT systemctl start $UNIT
echo "file://$MNT" "$BAS" >>$BOOKMARKS echo "file://$MNT" "$BAS" >>$BOOKMARKS
DISPLAY=:0.0 pcmanfm file://$MNT >/dev/null 2>&1
fi fi
fi fi
fi fi