Bug 83896

Summary: cd drive blocked by kdeinit kio_audiocd when staring konqueror
Product: [Applications] konqueror Reporter: klaus thorn <klaus>
Component: generalAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: kio_audiocd-fix-blocking-cd.patch

Description klaus thorn 2004-06-24 00:03:27 UTC
Version:            (using KDE KDE 3.2.2)
Installed from:    RedHat RPMs
Compiler:           packages are from Fedora Core 2 Distribution
OS:                Linux

Users can not mount a data CD on some of my seven fedora core 2 installations (dont know what's the difference). When someone inserts a CD and then opens konqueror, the audio-Cd-browser in the sidebar starts and is annoyingly long animated. Nothing happens at first. User klicks on konqueror-sidebar -> devices -> CD-Rom then one or two (if clicked double then two or three) windows open with a not helpfull error message. Something like "maybe it is already mounted". Even when I start konsole and become root I cannot mount the CD and it is not mounted according to both mount and /proc/mounts.

What I found out: lsof /dev/cdrom shows kdeinit kio_audiocd
So some kde-part started by konqueror blocks the cdrom

I tried to find documentation or bug reports or mails about how to turn off the automatically starting audiocd-program but found nothing.

One user tried it again and again and then one time it worked, but not the next time she tried. So most of the time on some of the installations it does not work. What can I do, without being able to read Data-Cds with my installations these customers will really look down on me; and wouldn't you?

I changed the options for cdrom in /etc/fstab from ...kudzu,owner,... to ...user,... but it did not help.

k3b successfully burnes CDs on the CD Drives and mounting from commandline (without KDE in the background) works fine.


And one more unnessesary sentence: this is not the only basic funtion that is not working in kde. I hope I'll find more clear examples and time to report them as bugs. Often I ask myself "didn't they even test it?"
Comment 1 Sergey V Turchin 2004-07-07 17:30:54 UTC
Created attachment 6588 [details]
kio_audiocd-fix-blocking-cd.patch

Fix the problem
Comment 2 klaus thorn 2004-07-23 12:39:50 UTC
Works fine, tested it on two computers. thank you very much. I hope the patch will become part of the kde mainstream.

One addition for other people with fedora who want to integrate the patch but do not know how:

-get the kde multimedia src rpm package

-install it with rpm -Uvh, the sources will be in /usr/src/redhat

-you will need to install more packages. See output of rpm and compile errors.

-unpack the source (cd /usr/src ; tar jxvf /usr/src/redhat/SOURCES/kdemultimedia*.bz2)

-apply the patch or change the source by hand (it's just one line)

-pack the source (tar jcvf /usr/src/redhat/SOURCES/kdemultimedia*.bz2 kdemultimedia*)

-compile: rpmbuild -bb /usr/src/redhat/SPECS/kdemultimedia.spec

when compilation exits with errors then likely you need another devel-package. So if the error is: ld: cannot find -lselinux then installing  libselinux-1.11.4-1 and libselinux-devel-1.11.4-1 will help. (fedora core 2)

-install: rpm -Uvh --force /usr/src/redhat/RPMS/i386/kdemultimedia-3*

the patched binary package for fedora core 2 is at http://www.trillke.net/~klaus/admin/kdemultimedia-3.2.2-2.i386.rpm