This forum has been archived. All content is frozen. Please use KDE Discuss instead.

CD icon in Desktop

Tags: None
(comma "," separated)
guy.leonis
Registered Member
Posts
3
Karma
0
OS

CD icon in Desktop

Wed May 04, 2011 3:21 pm
Hello,

I am using KDE 4.5.2 on Fedora Core 14, on a Lenovo W500 ThinkPad.

The mount line in /etc/fstab is:
/dev/sr0 /mnt/cdrom udf,iso9660 noauto,user,exec,ro 0 0

The /mnt/cdrom directory is owned by root with 755 access.

I am logged as rtr:rtr (a normal user, 501:501).

From a shell 'mount /mnt/cdrom' and 'umount /mnt/cdrom' are fine.

I created an icon in the Desktop directory (Create New => Link to Device => CD-ROM Device ...) selecting the /dev/sr0 device.
From that icon, I am able to umount the CD but not to mount the CD (error message: only root can do that).

I created another icon (Link to Application) with the 'mount /mnt/cdrom' Command, which works fine (although too slow to exit after the mount succeeded).

I would prefer to have only one icon. Any suggestion? Thanks a lot in advance.

Guy
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: CD icon in Desktop

Thu May 05, 2011 4:02 am
This will be due to either the configuration of HAL/UDisks on your system. KDE does not call "mount" directly, but rather asks either HAL Or UDisks, via the Solid framework to provide the path to the device, and mount it if it isn't mounted.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
guy.leonis
Registered Member
Posts
3
Karma
0
OS

Re: CD icon in Desktop

Thu May 05, 2011 9:37 am
Thank you for the quick answer.
HAL/udisks does not seem to be a good culprit.

I have tried 'udisks --monitor-detail' when playing with the CD icon.
On umount, plenty of messages and a good umount.
On mount, no message at all from the daemon and no mount. It seems that udisks-daemon is not activated, the error message 'only root can do that' being sent before.

When playing with my 'Link to Application' icon, I see the messages from the daemon.
When executing 'udisks --mount' and 'udisks --unmount', no problem either.

Another suggestion of the failing part in the chain between the icon and udisks-daemon?

By the way, where could I found the documentation for the very complete syntax of the files associated to icons?

Thanks in advance

Guy
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: CD icon in Desktop

Sat May 07, 2011 7:44 am
Interesting, could KDE possibly be using HAL on your system perhaps? Does the error message come prefixed with org.freedesktop....?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
guy.leonis
Registered Member
Posts
3
Karma
0
OS

Re: CD icon in Desktop

Mon May 09, 2011 9:17 am
Thanks for helping.

For me, udisks is a part of HAL, so I don't understand the first question. I apologize for my low level knowledge on that topic. Could you be more precise, e.g. by giving a few commands/files I could execute/send to provide you the information you are looking for.

For the second question, the error message is not prefixed with org.freedesktop.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: CD icon in Desktop

Mon May 09, 2011 10:31 am
UDisks and HAL are two seperate systems which provide information on the hardware as well as some control over it to applications in a safe way.

You can check using your package manager (Yum on Fedora I believe) which one you have installed. If you have both, check using the System Monitor (Accessible from Alt + F2) to see which one is running.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]