From 86da8367280591b4a07952782d76cadc7d742ed9 Mon Sep 17 00:00:00 2001 From: paperbenni Date: Wed, 29 Jul 2020 15:58:33 +0200 Subject: [PATCH] fix nm-applet autostart --- autostart.sh | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/autostart.sh b/autostart.sh index 2aa725f..93a27d0 100755 --- a/autostart.sh +++ b/autostart.sh @@ -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 -- 2.11.0