What to do when your system boots faster than the internet connection?

(kepszlok) #1

In these days, you can have a quite fast machine for low costs, for example a Ryzen cpu with fast ssd. But a system like this can boot up faster than the internet connection. See my last boot time:

Startup finished in 3.682s (kernel) + 3.945s (userspace) = 7.627s
graphical.target reached after 2.163s in userspace

And it used to be even a bit faster. So most of the time after boot i get a no internet connection alert from qBittorrent and Firefox tries to load pages sooner than it should be. Two seconds later i have internet connection (using wired connection)…
I did some searching in this topic, but sadly there are no way in KDE to delay app startup in any way. There are just open topics about this missing feature, spanning many years.

I know only one solution, to write some internet polling bash script, to delay launching my internet based apps. I can write a script to do that job, but i not really like that approach. Maybe somebody has a better solution till KDE devs implement this feature…

(tom) #2

remove plasma-nm because it drops the established connection and reconnect when you are logged in.

a propos start up time :stuck_out_tongue_winking_eye:

[tom@frija ~]$ systemd-analyze 
Startup finished in 1.055s (kernel) + 284ms (userspace) = 1.340s 
graphical.target reached after 261ms in userspace