Page 2 of 2

Re: How do I get KDEConnect to autostart in MX 21 Fluxbox

Posted: Wed Aug 10, 2022 5:42 am
by ceeslans
Now, that was an easy fix! :happy:
Glad you were able to resolve the issue

Re: How do I get KDEConnect to autostart in MX 21 Fluxbox

Posted: Thu Aug 11, 2022 5:48 am
by ceeslans
@mowest : after reading up on some old bl-forum posts, found that you can write the 'sleep' command directly in ~/.fluxbox/startup:

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
using the double ampersand instead of a single semicolon.
Makes it all a bit easier, huh?

Re: How do I get KDEConnect to autostart in MX 21 Fluxbox

Posted: Mon Aug 15, 2022 12:26 pm
by mowest
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:

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
using the double ampersand instead of a single semicolon.
Makes it all a bit easier, huh?
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.