Start X without authentication and open pcmanfm when directory is mounted
parent
9cb6a19582
commit
cb7ecf8b96
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue