After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 322266 - NetworkManager support
NetworkManager support
Status: RESOLVED OBSOLETE
Product: rhythmbox
Classification: Other
Component: general
HEAD
Other Linux
: Normal enhancement
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
: 428145 546402 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-11-23 21:01 UTC by Bastien Nocera
Modified: 2018-05-24 10:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
basic interface + podcast changes (23.20 KB, patch)
2006-09-07 13:37 UTC, Jonathan Matthew
needs-work Details | Review

Description Bastien Nocera 2005-11-23 21:01:35 UTC
This would mean that Rhythmbox would know when the network is available (the NM
bindings would either say that the network is available, unavailable or not
handled by NM):
- Disable Podcasts downloading and auto-updating
- Disable Internet Radios
- Don't try to load DAAP shares
- Don't load CD metadata
- Hide files on network shares from the library
Comment 1 lexual 2006-02-14 04:04:57 UTC
confirming
Comment 2 James "Doc" Livingston 2006-06-07 06:04:00 UTC
Marking as enhancement.
Comment 3 Jonathan Matthew 2006-09-07 13:37:34 UTC
Created attachment 72371 [details] [review]
basic interface + podcast changes

This adds a simple wrapper around libnm-glib, emitting a signal when network availability changes.  If NM is not running, we consider the network to be available.

It also adds network availability awareness to the podcast code.  It won't try to update podcasts while the network is down, and episode downloads will be queued until the network comes back.  If the podcast update timer expires while the network is down, the update will be done when the network comes back (hopefully; I didn't test that particularly well).
Comment 4 Jonathan Matthew 2006-09-07 13:45:31 UTC
I don't think we need to do anything for DAAP shares.  Avahi will remove DAAP
shares that are no longer reachable when network interfaces disappear.

Comment 5 William Jon McCann 2006-09-07 14:07:49 UTC
Would it be possible to just use the D-Bus interface directly to avoid an explicit dependency on libnm?  That way if the service is available we use it but if it isn't then we ignore it.
Comment 6 Jonathan Matthew 2006-09-07 21:56:54 UTC
I intend to do that once I've got added network awareness to everything that needs it.  Using libnm-glib was just easier for now.

Should we add a random delay between the network availability notification and any attempts at downloading/submitting data?  It'd probably suck a bit to have everything on your desktop hit the network at the same time.
Comment 7 Alexander Hunziker 2007-05-22 19:33:25 UTC
It would  be great to have this commited. Everytime I resume my machine from standby, there is one error dialog for every podcast source I have in the list that tells me that it couldn't connect to the corresponding server. A bit annoying :-)
Comment 8 Bastien Nocera 2007-08-20 16:38:19 UTC
*** Bug 428145 has been marked as a duplicate of this bug. ***
Comment 9 Jonathan Matthew 2007-08-23 13:25:53 UTC
I haven't been able to work on this for some time, due to some sad incompatibility between network manager and my wireless nic (bcm43xx).  If anyone else could carry on the work, I'd be happy to help out.
Comment 10 Bastien Nocera 2007-10-10 16:31:58 UTC
I'll add this to my TODO list.
Comment 11 Bastien Nocera 2007-10-12 15:24:21 UTC
I'm not sure that using DBus directly is a good idea. Using nm-glib shields us from the DBus API changes in NetworkManager, which is probably a good idea these days, especially when NM is able to handle multiple network cards.
Comment 12 Bastien Nocera 2008-08-07 19:20:52 UTC
*** Bug 546402 has been marked as a duplicate of this bug. ***
Comment 13 Nguyen Thai Ngoc Duy 2008-08-08 16:25:47 UTC
Is there an option not depending on NetworkManager? Sometimes I just want to take rhythmbox offline while the rest of system is still online.
Comment 14 Bastien Nocera 2008-08-08 16:39:12 UTC
Same code paths anyway...
Comment 15 GNOME Infrastructure Team 2018-05-24 10:54:45 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rhythmbox/issues/93.