Bug 142663 - media:/cdrom doesn't show anything
Summary: media:/cdrom doesn't show anything
Status: RESOLVED INTENTIONAL
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: klauncher (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Kevin Ottens
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-07 23:23 UTC by Lukasz B
Modified: 2009-04-11 12:17 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
.xsession-errors output (23.80 KB, text/plain)
2007-04-02 20:34 UTC, Peter Volkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukasz B 2007-03-07 23:23:12 UTC
Version:            (using KDE KDE 3.5.6)
Installed from:    Unlisted Binary Package
Compiler:          gcc-3.3.6-5 most probably this version
OS:                Linux

after inserting cd or pendrive, confirming popup window, it gets mounted by hal (version hal-0.5.7.1, under /media/hdc, /media/disk o similar). but after opening window with media:/hdc or media:/sda1, nothing appears (empty window with statusbar no items-no dirs-no files).
If you walk to /media/*, files are normally listed.
During opening this empty window stderr says (startkde in empty xterm window):
QGDict::hashKeyString: Invalid null key
QGDict::hashKeyString: Invalid null key
kio_media: ERROR: : couldn't create slave : Unable to create io-slave:
klauncher said: Unknown protocol ''.

I located last message at kinit/klauncher.cpp in function requestSlave.
I don't know if this has anything in common.

And more - this system has been upgraded several times (but not before KDE 3.0)
Creating another empty user or starting as root does not resolve.
Comment 1 Lukasz B 2007-03-07 23:30:25 UTC
More: I asked at my distribution newsgroup (in polish, http://www.mail-archive.com/pld-users-pl%40lists.pld-linux.org/)
but not found satisfacting information.
I don't know how to reproduce error.
I don't have much skills to build a debug version of KDE.
I suppose there is an error in configuration, but not in users directory
(new empty user created and still error).
I looked at /usr/share/services and it seems ok. I reinstalled package to be sure.
The same bug appeared with some older version (but also 3.5)
Comment 2 Lukasz B 2007-03-09 20:52:39 UTC
Maybe related to
http://bugs.kde.org/show_bug.cgi?id=141815
?
Comment 3 Peter Volkov 2007-04-02 20:31:14 UTC
Uh. I have the same problem but also with USB mass storage devices. I wanted to debug the problem but more than two months passed and I still did not found any time... May be somebody from developers could give me a hint where to start research I'll do my best to dig in sources AFAIC.
Comment 4 Peter Volkov 2007-04-02 20:34:37 UTC
Created attachment 20157 [details]
.xsession-errors output

And here is output from .xsession-errors with kdelibs and kdeioslaves both
built with debug USE flag enabled. May be you'll see some klues there. I did
not manage...
Comment 5 Lukasz B 2007-05-13 23:06:36 UTC
As for now, this bug does not affect me, as I installed whole environment from scratch, using newest packets from my distro. Everything works fine in this matter.

Lukasz
Comment 6 Peter Volkov 2007-05-14 08:37:54 UTC
Same here. After update I do not have this error anymore. But I did not localized what was updated :(
Comment 7 David Faure 2008-05-09 19:44:41 UTC
media:/ was removed from KDE4, so this bug is most probably obsolete.
Comment 8 Kevin Ottens 2008-05-09 23:40:10 UTC
Indeed, I think it's safe to assume WONTFIX for this one. Inactive for one year, and these days I can't chase both 3.5 and 4.x all by myself.
Comment 9 Artem S. Tashkinov 2009-04-11 11:56:46 UTC
I get the same errors with Fedora 10 (KDE 3.5.10 is compiled manually from sources):

GDict::hashKeyString: Invalid null key
QGDict::hashKeyString: Invalid null key
kio_media: ERROR: : couldn't create slave : Unable to create io-slave:
klauncher said: Unknown protocol ''.
kio_media:
kio (KIOConnection): ERROR: Header read failed, errno=104
kio (KIOConnection): ERROR: Header has invalid size (-1)

I have absolutely no idea how to fix it. Everything worked fine two months ago, then some update broke everything - it could be hal or kernel update - I don't know.
Comment 10 Artem S. Tashkinov 2009-04-11 12:17:49 UTC
PolicyKit is what caused the problem for me.

Following the advice on the web, I've added 

        <match action="org.freedesktop.hal.storage.mount-removable">
                <return result="yes" />
        </match>

to /etc/PolicyKit/PolicyKit.conf <config> section and now the problem is solved.

Also make sure you've read this thread: http://ubuntuforums.org/showthread.php?t=857374 (USB drives not automounting, possible solution!)

And google for: "org.freedesktop.hal.storage.mount-removable no" or/and "org.freedesktop.Hal.Device.PermissionDeniedByPolicy"

My .xsession-errors looked this way:

kded: ERROR: mount failed for /org/freedesktop/Hal/devices/volume_uuid_XXXX_XXXX: org.freedesktop.Hal.Device.PermissionDeniedByPolicy - org.freedesktop.hal.storage.mount-removable no <-- (action, result)

kded: ERROR: mounting /org/freedesktop/Hal/devices/volume_uuid_XXXX_XXXX returned org.freedesktop.hal.storage.mount-removable no <-- (action, result)