[Thunar-dev] Mounting volume
Benedikt Meurer
benedikt.meurer at unix-ag.uni-siegen.de
Mon Sep 11 22:53:39 CEST 2006
Luca Bruno wrote:
> For sure,
> i'm using HAL to shutdown but you need also sudo ;)
> You have to put something like this in /etc/sudoers
>
> %users ALL = NOPASSWD: /path/to/xfce/libexec/xfsm-shutdown-helper
>
> I don't remember the exact line, but it should be closer to that...
> Good luck.
You don't need sudo if HAL allows Shutdown/Reboot for your user on the
org.freedesktop.Hal.Device.SystemPowerManagement interface. I.e. to
allow all users in the group "users" to shutdown via HAL add this to
your system message bus configuration:
<policy group="users">
<allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
</policy>
xfce4-session spits out a message when you click logout, whether HAL can
be used or not (using autodetection on the power management interface).
Check ~/.xsession-errors.
> Please take care of HAL mount/umount/eject scripts, this would mean
> removing pmount dependency for several distros, even for my LFS.
I dunno which scripts you are talking about:
---
# pkg_info -L hal-0.5.8.20060528_3
Information for hal-0.5.8.20060528_3:
Files:
/usr/local/share/hal/dist/hal-power-hibernate.privilege
/usr/local/share/hal/dist/hal-power-poweroff.privilege
/usr/local/share/hal/dist/hal-power-reboot.privilege
/usr/local/share/hal/dist/hal-power-suspend.privilege
/usr/local/share/hal/dist/hal-storage-fixed-mount-change-uid.privilege
/usr/local/share/hal/dist/hal-storage-fixed-mount.privilege
/usr/local/share/hal/dist/hal-storage-removable-mount-change-uid.privilege
/usr/local/share/hal/dist/hal-storage-removable-mount.privilege
/usr/local/bin/hal-device
/usr/local/bin/hal-find-by-capability
/usr/local/bin/hal-find-by-property
/usr/local/bin/hal-get-property
/usr/local/bin/hal-set-property
/usr/local/bin/lshal
/usr/local/include/hal/libhal-storage.h
/usr/local/include/hal/libhal.h
/usr/local/lib/libhal-storage.a
/usr/local/lib/libhal-storage.la
/usr/local/lib/libhal-storage.so
/usr/local/lib/libhal-storage.so.1
/usr/local/lib/libhal.a
/usr/local/lib/libhal.la
/usr/local/lib/libhal.so
/usr/local/lib/libhal.so.1
/usr/local/lib/libhald_freebsd_probe.a
/usr/local/lib/libhald_freebsd_probe.la
/usr/local/lib/libhald_freebsd_probe.so
/usr/local/lib/libhald_freebsd_probe.so.0
/usr/local/libdata/pkgconfig/hal-storage.pc
/usr/local/libdata/pkgconfig/hal.pc
/usr/local/libexec/hal-storage-mount
/usr/local/libexec/hal-system-power-pmu
/usr/local/libexec/hal/scripts/hal-luks-remove
/usr/local/libexec/hal/scripts/hal-luks-setup
/usr/local/libexec/hal/scripts/hal-luks-teardown
/usr/local/libexec/hal/scripts/hal-system-lcd-get-brightness
/usr/local/libexec/hal/scripts/hal-system-lcd-get-brightness-freebsd
/usr/local/libexec/hal/scripts/hal-system-lcd-set-brightness
/usr/local/libexec/hal/scripts/hal-system-lcd-set-brightness-freebsd
/usr/local/libexec/hal/scripts/hal-system-power-hibernate
/usr/local/libexec/hal/scripts/hal-system-power-reboot
/usr/local/libexec/hal/scripts/hal-system-power-reboot-freebsd
/usr/local/libexec/hal/scripts/hal-system-power-set-power-save
/usr/local/libexec/hal/scripts/hal-system-power-set-power-save-freebsd
/usr/local/libexec/hal/scripts/hal-system-power-shutdown
/usr/local/libexec/hal/scripts/hal-system-power-shutdown-freebsd
/usr/local/libexec/hal/scripts/hal-system-power-suspend
/usr/local/libexec/hal/scripts/hal-system-power-suspend-freebsd
/usr/local/libexec/hal/scripts/hal-system-storage-cleanup-mountpoint
/usr/local/libexec/hal/scripts/hal-system-storage-cleanup-mountpoints
/usr/local/libexec/hal/scripts/hal-system-storage-cleanup-mountpoints-freebsd
/usr/local/libexec/hal/scripts/hal-system-storage-eject
/usr/local/libexec/hal/scripts/hal-system-storage-eject-freebsd
/usr/local/libexec/hal/scripts/hal-system-storage-unmount
/usr/local/libexec/hal/scripts/hal-system-storage-unmount-freebsd
/usr/local/libexec/hald-addon-storage
/usr/local/libexec/hald-probe-hiddev
/usr/local/libexec/hald-probe-scsi
/usr/local/libexec/hald-probe-smbios
/usr/local/libexec/hald-probe-storage
/usr/local/libexec/hald-probe-volume
/usr/local/libexec/hald-runner
/usr/local/sbin/hald
/usr/local/share/doc/hal-0.5.8/README.freebsd
/usr/local/share/doc/hal-0.5.8/conf/match-USB-camera.fdi
/usr/local/share/doc/hal-0.5.8/conf/match-USB-mp3-player.fdi
/usr/local/share/doc/hal-0.5.8/conf/match-cardreader.fdi
/usr/local/share/doc/hal-0.5.8/conf/storage-non-fixed.fdi
/usr/local/share/doc/hal-0.5.8/conf/storage-policy-examples.fdi
/usr/local/share/doc/hal-0.5.8/conf/storage-skip-all.fdi
/usr/local/share/hal/dist/hal.conf
/usr/local/share/hal/fdi/fdi.dtd
/usr/local/share/hal/fdi/fdi.rng
/usr/local/share/hal/fdi/information/10freedesktop/10-camera-ptp.fdi
/usr/local/share/hal/fdi/information/10freedesktop/10-cd-dvd-burner.fdi
/usr/local/share/hal/fdi/information/10freedesktop/10-usb-card-readers.fdi
/usr/local/share/hal/fdi/information/10freedesktop/10-usb-music-players.fdi
/usr/local/share/hal/fdi/information/10freedesktop/10-usb-pda.fdi
/usr/local/share/hal/fdi/information/10freedesktop/10-usb-zip-drives.fdi
/usr/local/share/hal/fdi/information/10freedesktop/10-wireless-mice.fdi
/usr/local/share/hal/fdi/policy/10osvendor/10-keyboard-policy.fdi
/usr/local/share/hal/fdi/policy/10osvendor/10-laptop-panel-mgmt-policy.fdi
/usr/local/share/hal/fdi/policy/10osvendor/10-power-mgmt-policy.fdi
/usr/local/share/hal/fdi/policy/10osvendor/10-toshiba-buttons.fdi
/usr/local/share/hal/fdi/policy/10osvendor/15-storage-luks.fdi
/usr/local/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi
/usr/local/share/hal/fdi/preprobe/10osvendor/10-ide-drives.fdi
/usr/local/share/locale/cs/LC_MESSAGES/hal.mo
/usr/local/share/locale/da/LC_MESSAGES/hal.mo
/usr/local/share/locale/de/LC_MESSAGES/hal.mo
/usr/local/share/locale/el/LC_MESSAGES/hal.mo
/usr/local/share/locale/es/LC_MESSAGES/hal.mo
/usr/local/share/locale/eu/LC_MESSAGES/hal.mo
/usr/local/share/locale/fi/LC_MESSAGES/hal.mo
/usr/local/share/locale/fr/LC_MESSAGES/hal.mo
/usr/local/share/locale/hu/LC_MESSAGES/hal.mo
/usr/local/share/locale/it/LC_MESSAGES/hal.mo
/usr/local/share/locale/ja/LC_MESSAGES/hal.mo
/usr/local/share/locale/km/LC_MESSAGES/hal.mo
/usr/local/share/locale/ko/LC_MESSAGES/hal.mo
/usr/local/share/locale/lt/LC_MESSAGES/hal.mo
/usr/local/share/locale/nb/LC_MESSAGES/hal.mo
/usr/local/share/locale/nl/LC_MESSAGES/hal.mo
/usr/local/share/locale/pa/LC_MESSAGES/hal.mo
/usr/local/share/locale/pl/LC_MESSAGES/hal.mo
/usr/local/share/locale/pt/LC_MESSAGES/hal.mo
/usr/local/share/locale/pt_BR/LC_MESSAGES/hal.mo
/usr/local/share/locale/ru/LC_MESSAGES/hal.mo
/usr/local/share/locale/sl_SI/LC_MESSAGES/hal.mo
/usr/local/share/locale/uk/LC_MESSAGES/hal.mo
/usr/local/share/locale/zh_CN/LC_MESSAGES/hal.mo
/usr/local/share/locale/zh_TW/LC_MESSAGES/hal.mo
/usr/local/etc/rc.d/hald
---
HAL installs internal scripts in $(libexecdir) which are used to
implement various HAL methods. Concerning the D-Bus methods, guess what
pmount-hal and gnome-mount are using. But mounting requires a bit more
than just calling the HAL method, that's why tools like pmount-hal and
gnome-mount exist and I don't see any need nor use in duplicating code
and increasing maintaince overhead by forking either of these. It's sure
sad that David was too shortsighted to make gnome independent HAL mount
wrapper tools, but that's gnome related ignorance, nothing new. If you
can convince him to make mount/eject/unmount wrappers that do not depend
on gnome, we'll happily use them.
> Bye.
Benedikt
More information about the Thunar-dev
mailing list