How do I get KDEConnect to autostart in MX 21 Fluxbox  [Solved]

Help for MX Fluxbox
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
ceeslans
Posts: 829
Joined: Sun Apr 14, 2019 3:48 am

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

#11 Post by ceeslans »

Now, that was an easy fix! :happy:
Glad you were able to resolve the issue
Sony Vaio VPCF23P (2011), Intel Core i7-2670, 6gb RAM, 240gb SSD, MX-Linux 23 based Fluxbox v/1.3.7+
Lenovo Thinkpad L560 (2016), Intel Core i5-6200, 16gb RAM, 240gb SSD, Devuan Daedalus based Fluxbox v/1.3.7+

User avatar
ceeslans
Posts: 829
Joined: Sun Apr 14, 2019 3:48 am

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

#12 Post 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?
Sony Vaio VPCF23P (2011), Intel Core i7-2670, 6gb RAM, 240gb SSD, MX-Linux 23 based Fluxbox v/1.3.7+
Lenovo Thinkpad L560 (2016), Intel Core i5-6200, 16gb RAM, 240gb SSD, Devuan Daedalus based Fluxbox v/1.3.7+

User avatar
mowest
Posts: 119
Joined: Mon Jul 06, 2020 4:08 pm

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

#13 Post 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.
https://discoverfoss.com
Home Desktop = HP Envy - i7 with 16GB - Fedora 38
Home Laptop = HP Pavilion dv4 - AMD Turion II M520 with 4GB - MX-21 Fluxbox
Work Desktop = Acer M11AA - i5-3340s with 8GB - MX-21 Fluxbox

Post Reply

Return to “MX Fluxbox Official Release”