OSDN Git Service

fix autostart reboot bug
authorpaperbenni <paperbenni@gmail.com>
Tue, 8 Sep 2020 17:21:09 +0000 (19:21 +0200)
committerpaperbenni <paperbenni@gmail.com>
Tue, 8 Sep 2020 17:21:09 +0000 (19:21 +0200)
autostart.sh

index 03bd873..7498a2f 100755 (executable)
@@ -289,25 +289,6 @@ done &
 
 xfce4-power-manager &
 
-# start processes that need to be kept running
-while :; do
-    sleep 10
-    if iconf -i wifiapplet && ! pgrep nm-applet; then
-        echo "starting bluetooth applet"
-        nm-applet &
-    fi
-
-    if iconf -i bluetoothapplet && ! pgrep blueman-applet; then
-        echo "starting bluetooth applet"
-        blueman-applet &
-    fi
-
-    if iconf -i alttab && ! pgrep alttab; then
-        alttab -fg "#ffffff" -bg "#292F3A" -frame "#5293E1" -d 0 -s 1 -t 128x150 -i 127x64 -w 1 -vp pointer &
-    fi
-    sleep 2m
-
-done &
 
 # auto open menu when connecting/disconnecting monitor
 if ! (iconf -i noautoswitch && iconf -i islaptop) || iconf -i autoswitch; then
@@ -427,4 +408,25 @@ if ! iconf -i noupdates; then
             done
         fi
     fi
-fi
+fi &
+
+# start processes that need to be kept running
+while :; do
+    sleep 10
+    if iconf -i wifiapplet && ! pgrep nm-applet; then
+        echo "starting bluetooth applet"
+        nm-applet &
+    fi
+
+    if iconf -i bluetoothapplet && ! pgrep blueman-applet; then
+        echo "starting bluetooth applet"
+        blueman-applet &
+    fi
+
+    if iconf -i alttab && ! pgrep alttab; then
+        alttab -fg "#ffffff" -bg "#292F3A" -frame "#5293E1" -d 0 -s 1 -t 128x150 -i 127x64 -w 1 -vp pointer &
+    fi
+    sleep 2m
+
+done
+