On Saturday, 28. January 2006 00:48, Volker Kuhlmann wrote:
I don't know what these highly-developed do exactly, but I guess there's a GUI and a (suid-root?) backend calling mount.
Something like that is my understanding too. The program calling mount is hald-subfs-mount, and it's not tied to either KDE or gnome. I have not yet seen a reason why this has to be a C program, I reckon I can do it in bash and it's not too difficult. No-one said it has to be a C program. But as you need to understand I guess: subfs is dropped from the kernel. Which means no hald-subfs-mount anymore as it makes zero sense.
Is it difficult to create a shell script or a little console app called by HAL to do the automount?
No, it's not. But we won't put it in our distribution (at least in the default selection) because it would mean that all file systems will always be mounted by root. You don't want that usually - especially with file systems allowing only one user to write to it (say vfat as used by many USB sticks these days). With subfs the kernel triggered the actual file system mounting as the user id that accessed the device. You won't be able to do that with some HAL triggered automatism. Never - but you won't be able to do something like that with the functionality the linux kernel provides either. And as subfs will never be upstream, it was decided to drop it. As to our current solution without subfs. This is how you configure it in KDE (beta3 will have it complete): http://ktown.kde.org/~coolo/snapshot1.png . And finally you will have a visual feedback why pressing on the eject button does not do anything for you: http://ktown.kde.org/~coolo/snapshot2.png . GNOME works pretty similiar. So my theory is: you won't miss subfs under GNOME and KDE - you will even love the new option to mount sync or async as it fits your taste. So that leaves the automount problem to users not running either. And as I said: without any icewm-volume-manager there is little chance that icewm users will have the same experience. They will need to do something manually (sometimes you pay the price of "lightweight"[1]). They have several options though: - edit fstab and add whatever options they like for their labeled devices so they can "mount /media/stick" - sudo mount -o machsmirrichtigflott /dev/sdb1 /media/stick - use HAL (someone is working on a shell script to basically wrap this call: dbus-send --system --print-reply --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/volume_uuid_ECC4_B0F1 org.freedesktop.Hal.Device.Volume.Mount string: string: array:string: ), but I couldn't find it with google. But again: the kernel or the hot plug system won't automatically mount, so you need to put that fact into consideration if you decide that KDE offers too much functionality to you and that you rather go leightweight. Greetings, Stephan [1] http://www.kdedevelopers.org/node/1664