Re: How do I get KDEConnect to autostart in MX 21 Fluxbox
Posted: Wed Aug 10, 2022 5:42 am
Now, that was an easy fix!
Glad you were able to resolve the issue

Glad you were able to resolve the issue
Support for MX and antiX Linux distros
http://www.forum.mxlinux.org/
Code: Select all
# if kdeconnect is installed, start the kdeconnect-indicator
if [ -x /usr/bin/kdeconnect-indicator ]; then
sleep 5s && bash -c 'kdeconnect-indicator' &
fi
Nice, I like having this in my startup script, and I used this modified bash if statement and it did work to automatically start kdeconnect-indicator after I logged into Fluxbox. This is just a little bit cleaner to have the code in the "startup" instead of calling a separate script. Thanks for the bash scripting insight.ceeslans wrote: Thu Aug 11, 2022 5:48 am @mowest : after reading up on some old bl-forum posts, found that you can write the 'sleep' command directly in ~/.fluxbox/startup:using the double ampersand instead of a single semicolon.Code: Select all
# if kdeconnect is installed, start the kdeconnect-indicator if [ -x /usr/bin/kdeconnect-indicator ]; then sleep 5s && bash -c 'kdeconnect-indicator' & fi
Makes it all a bit easier, huh?