From cb7ecf8b96a297c9d49bfbb73b63309d5084801f Mon Sep 17 00:00:00 2001 From: TomasM Date: Tue, 29 Jan 2019 11:13:13 +0000 Subject: [PATCH] Start X without authentication and open pcmanfm when directory is mounted --- .../modules/02-xorg/rootcopy/lib/systemd/system/xorg.service | 2 +- Slax/debian/rootcopy/sbin/slax-automount | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Slax/debian/modules/02-xorg/rootcopy/lib/systemd/system/xorg.service b/Slax/debian/modules/02-xorg/rootcopy/lib/systemd/system/xorg.service index e7f642b..eb7608f 100644 --- a/Slax/debian/modules/02-xorg/rootcopy/lib/systemd/system/xorg.service +++ b/Slax/debian/modules/02-xorg/rootcopy/lib/systemd/system/xorg.service @@ -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" diff --git a/Slax/debian/rootcopy/sbin/slax-automount b/Slax/debian/rootcopy/sbin/slax-automount index d28c942..6e6777b 100755 --- a/Slax/debian/rootcopy/sbin/slax-automount +++ b/Slax/debian/rootcopy/sbin/slax-automount @@ -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