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

What happened when I click Device-Notifier?

Tags: None
(comma "," separated)
ups
Registered Member
Posts
2
Karma
0
OS
I'm curious about what's happening when I click the Device Notifier widget, because I'd like to do a little customization, such as change the auto-mount options.

Originally, I thought it reads some hal info and then calls pmount.
But I found it is not true, because it works fine without pmount.

Then I get the plasma-widgets-workspace source code package and try to read.
The code of device notifier is not very long, but I still can't find out which part did the actual mount job.

So far I only get that device notifier inits itself and connects itself to the hotplug dataengine. But the hotplug engine seems only reads some device info and notifies device notifier, nothing else.

So what's happening when I clicked the plugged in disk's icon? What code actually does the mount job?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The Device Notifier itself does not perform the mounting. Dolphin performs the mounting when you ask Dolphin to open the device.

Dolphin will be using Solid to mount the device, and Solid will be using what ever backend it has been configured to use ( usually HAL )


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
ups
Registered Member
Posts
2
Karma
0
OS
Thanks, that helps a lot.

I tried, it is mounted by 'solid-hardware mount udi'

But it seemed that there is no way to customize the mount options. unless modify and recompile the solid-hardware code in kdebase-runtime package...
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
That command simply uses the Solid library the same as Dolphin does. Which therefore uses KIO. KDE does not contain ANY backend specific mounting commands, unless they are present in the HAL backend itself, which is present in KDELibs.

See svn://anonsvn.kde.org/home/kde/trunk/KD ... ckends/hal


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


Bookmarks



Who is online

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