fiftydinar / gidro-os

My personalized custom OS image.
Apache License 2.0
12 stars 0 forks source link

fix(auto-start): Apps are started before network connection is established #9

Closed fiftydinar closed 6 months ago

fiftydinar commented 6 months ago

Steam, Discord, Telegram, Deluge & TutaMail are the apps which are currently started automatically on boot.

Current auto-start desktop entries are in xdg-autostart format, which is automatically converted to systemd unit by systemd.

While they work alright in most cases, there can be an improvement in those.

Main issue is the handling of network connection status, which xdg-autostart units completely ignore. This is a problem for apps which rely on active internet connection, like all those I mentioned in 1st sentence. They can start before internet connection is established, which can cause them to fail, needing the manual re-opening of the affected apps to solve the problem.

By adding Wants=network-online.target & After=network-online.target to the auto-start desktop entries, issue would be solved.