Bug 157422

Summary: /media/xmms_audio_cd directory useless
Product: [openSUSE] SUSE Linux 10.1 Reporter: Michael Stather <kontakt>
Component: BasesystemAssignee: Stanislav Brabec <sbrabec>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: suse-beta
Version: Beta 6   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Michael Stather 2006-03-11 12:37:37 UTC
This directory is always there, even if there´s no CD in the drive. Even if I insert a cd nothing is in this dir so IMHO it´s rather useless. Or am I wrong here?
Comment 1 Michael Gross 2006-03-13 11:23:51 UTC
This directory is created after the first start of xmms - without playing any file. Should be removed, I'm not sure how it makes sense mounting an CDDA anyway ;)
Comment 2 Stanislav Brabec 2006-03-13 16:03:46 UTC
The directory is required to be able to play Audio CD in XMMS.

Hack in XMMS is incompatible with auto mounting and requires a fixed path to CD. If user browses this directory in the xmms, CD-Audio contents is displayed there (only in XMMS).

The directory could have any location, but /media is the place, where most people will search it.

For example of use please see /usr/share/applications/xmms_audio_cd.desktop.

For more see bug 60258.
Comment 3 Michael Stather 2006-03-13 17:36:53 UTC
If it requires a fixed path for the CD there are paths like /media/dvd and /media/dvdrecorder in addition to the dynamic folders.
Also other apps like cedega which need fixed paths work fine with those.
So why can´t you use this?
Comment 4 Stanislav Brabec 2006-03-13 17:48:27 UTC
In 9.x, it will not work in XMMS, because subfs conflicts with xmms.
In 10.x it will not work, because media manipulation (HAL, D-BUS) will never use it, because it has not proper extended attributes.
In 10.1, /media is empty by default.
Comment 5 Michael Stather 2006-03-13 18:01:53 UTC
On my 10.1 beta I´ve both /dev/dvd and /dev/dvdrecorder, so it isn´t empty *g
Comment 6 Michael Stather 2006-03-13 18:06:24 UTC
Sorry it´s called /media/disk whenever a CD is inserted. Can´t xmms live with that?
Comment 7 Stanislav Brabec 2006-03-13 18:08:00 UTC
No.

I can preconfigure xmms to use /media/dvd or /media/disk. But HAL/D-BUS creates them dynamically depending on available hardware and desktop configuration, so xmms will not play for people with /media/cdrecoreder or /media/dvdram. I guess that dedicated static directory is a best solution.

And vice vera, HAL/D-BUS will never use directories created by other applications.
Comment 8 Michael Stather 2006-03-13 18:32:40 UTC
Yes but the new naming scheme uses (at least on my system) /media/disk no matter whether it´s a dvd drive recorder or cd drive/recorder. So this should IMHO work.
Comment 9 Stanislav Brabec 2006-03-13 22:37:39 UTC
I guess that use of /media/disk is not a feature, but a bug 157626. It should use /media/dvd, /media/dvdram, /media/dvdrecorder, /media/cdrom, /media/cdrecorder depending on type of hardware.

Additionally, for audio CD, HAL has no need to create this entry. I don't know, whether it does just now.

But you can simply remove /media/xmms_audio_cd, change xmms configuration and try it.

But from my point of view, static entry is optimal. HAL cannot guarantee this static access point.