I try to download a file with curl directly after logging into Gnome. This usually fails because mostly the WiFi connection is only established after login. If I wait long enough in the login screen before logging in, the connection is already established and the download works.

So far I have used Manjaro. WiFi was already active long before the login screen of GDM was even displayed. The download therefore always worked.

The download is initiated with a *.desktop file in ~/.config/autostart.

Is there another way to start the download after the user is logged in and the WiFi connection is really ready?

  • MoLoPoLY@discuss.tchncs.deOP
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    2
    ·
    5 days ago

    Yep, I know. But when I only depend on

    After=network-online.target
    Wants=network-online.target
    

    this doesn’t mean, I have a working internet connection. That’s why the loop.

    Or is that wrong?