On modern systems, you can use DBus to inquiry NetworkManager whether there is an Internet connection, or something that resembles that. Firefox asks NetworkManager the same question and updates the "Work offline" flag accordingly.
On modern systems, you can use DBus to inquiry NetworkManager whether there is an Internet connection, or something that resembles that. Firefox asks NetworkManager the same question and updates the "Work offline" flag accordingly.