OSDN Git Service

fix nm-applet autostart
authorpaperbenni <paperbenni@gmail.com>
Wed, 29 Jul 2020 13:58:33 +0000 (15:58 +0200)
committerpaperbenni <paperbenni@gmail.com>
Wed, 29 Jul 2020 13:58:33 +0000 (15:58 +0200)
autostart.sh

index 2aa725f..93a27d0 100755 (executable)
@@ -275,20 +275,18 @@ done &
 
 xfce4-power-manager &
 
-while iconf -i wifiapplet:; do
-       echo "auto starting wifi applet"
-       if ! pgrep nm-applet; then
+while :; do
+       sleep 10
+       if iconf -i wifiapplet && ! pgrep nm-applet; then
+               echo "starting bluetooth applet"
                nm-applet &
        fi
-       sleep 6m
-done &
 
-while iconf -i bluetoothapplet:; do
-       echo "auto starting bluetooth applet"
-       if ! pgrep blueman-applet; then
+       if iconf -i bluetoothapplet && ! pgrep blueman-applet; then
+               echo "starting bluetooth applet"
                blueman-applet &
        fi
-       sleep 6m
+       sleep 2m
 done &
 
 # welcome greeter app