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 170057 - FHS compliance in iPod support
FHS compliance in iPod support
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: general
0.8.8
Other Linux
: Low minor
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-03-12 12:39 UTC by Loïc Minier
Modified: 2005-09-25 08:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to use GnomeVFSVolumeMonitor and (optionally) hal to find the iPod mount point in the 0.8 branch (13.50 KB, patch)
2005-03-16 08:31 UTC, Christophe Fergeau
none Details | Review

Description Loïc Minier 2005-03-12 12:39:54 UTC
Hi,

 I've turned iPod support in Rhythmbox 0.8 for Debian[1].  Recently, in
 Debian bug <http://bugs.debian.org/298915>, I was told Rhythmbox could
 be made more FHS compliant if it used /media/ipod as the default mount
 path for the iPod, instead of the current hardcoded path: /mnt/ipod.  I
 noticed the 0.8 branch also checks for a qahog iPod path.
   As far as I understand it, it seems qahog is an unreleased GNOME
 module which has its last checkins in march 2004, and Rhythmbox 0.9
 seems to use a whole new system based on GnomeVFSVolumeMonitor, which 
 is itself based on libhal.

 Is it safe to assume that the FHS compliance issue has been resolved 
 in 0.9 since no hardcoded path is involved?

 Could you please change /mnt to /media in 0.8 branch (or support both)?
 (I will patch the Debian package to match your changes to not diverge too
 much.)

   Regards,

[1] I know the iPod support code might be better in the 0.9 branch, but
I have to stick with 0.8 for now as 0.9 is unreleased and depends of
recent GNOME libraries not yet in Debian.

PS: may I suggest an iPod Component for iPod bugs?
Comment 1 Christophe Fergeau 2005-03-16 08:31:45 UTC
Created attachment 38781 [details] [review]
Patch to use GnomeVFSVolumeMonitor and (optionally) hal to find the iPod mount point in the 0.8 branch

Probably much better than a quick and dirty hack to look for /media/ipod in
addition to /mnt/ipod (and needed by the ubuntu guys)
Comment 2 Loïc Minier 2005-03-21 08:13:11 UTC
That's an absolutely cool patch, thanks!

Sadly, it will need some more time for me to test as I'll have to grab an iPod
and switch to HAL and switch to udev -- both not the default in Debian.  (Or I
might upload pacakges to experimental for people to test.)

Again, thanks for the patch.
Comment 3 Christophe Fergeau 2005-03-21 08:22:04 UTC
Neither HAL nor udev are needed for this patch. If hal is present, when it
detects a new mount, it goes to check the device manufacturer in the usb or
firewire properties for the device which was mounted, if hal isn't there, it
just checks for the presence of a specific file to detect whether the new device
is an ipod or not. So things should work when hal isn't installed and rhythmbox
is compiled without rhythmbox installed.
Comment 4 Loïc Minier 2005-03-21 12:15:32 UTC
That's great news, I'll just have to get my hands on an iPod in the next days, then!

If anyone subscribed to the Rhythmbox BTS wants to test Rhythmbox pacakges with
this patch, there are temporarily here:
    <http://joule.via.ecp.fr/~lool/debian/rhythmbox/0.8.8-7/>

Thanks for the clarification.
Comment 5 Bastien Nocera 2005-06-11 11:40:28 UTC
Christophe, is this patch in CVS?
Comment 6 Christophe Fergeau 2005-06-23 22:49:49 UTC
Nope, I never came around to commit it.
Comment 7 Loïc Minier 2005-06-24 06:15:37 UTC
Works nice in Debian, and I've tested it and seen tested it with iPod and iPod
minor if that matters.
Comment 8 Colin Walters 2005-08-11 21:26:36 UTC
If this patch makes things work better with iPods by all means let's get it in.

One random comment: No need for #ifdef HAL; we should just require HAL
unconditionally.
Comment 9 James "Doc" Livingston 2005-08-12 03:13:14 UTC
The issue is that RB doesn't compile against HAL >= 0.5. I think there is a
patch for that somewhere in bugzilla, but it then doesn't compile against
earlier versions - no-one got around to making it support both.

Bug 310017 has the patch for HAL >= 0.5
Comment 10 James "Doc" Livingston 2005-09-12 03:18:11 UTC
These changes are already in cvs. Closing
Comment 11 Baptiste Mille-Mathias 2005-09-25 08:56:28 UTC
Set it FIXED for real