Hello!

On mar., juil. 20, 2010 at 08:39:17 -0400, Kris Maglione wrote:
> You need to run it under ck-launch-session. 

This is what I did. When wmii ran without ck-launch-session I had
another error:

-----------------------------------------------------------------
Error org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched 
rules; type="method_call", sender=":1.6" (uid=1114 pid=2684 comm="dbus-send) 
interface="org.freedesktop.Hal.Device.Volume" member="Mount" error 
name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 
pid=1418 comm="/usr/sbin/hald))
ERROR: dbus-send failed
-----------------------------------------------------------------

The error I have reported in my last post was under ck-launch-session:

-----------------------------------------------------------------
$ ps -u $USER | grep ck
 8548 ?        00:00:00 ck-launch-sessi
$ ./halmount /dev/sdb1
Error org.freedesktop.Hal.Device.Volume.InvalidMountOption: The
option 'uid=1114' is not allowed for uid=1114
ERROR: dbus-send failed
-----------------------------------------------------------------

> Oh, you don't want to understand how dbus-send works. 

I don't want it, you're right. But it is difficult to understand what
goes wrong when I'm using halmount without any idea of the syntax of
dbus-send, isn't it? 

> If you want to change the script, though, you can remove the line
> that adds uid=... to $OPTIONS, 

This works fine, thank you. 

-----------------------------------------------------------------
$ ./halmount /dev/sdb1
Mounted /dev/sdb1 to /media/disk
-----------------------------------------------------------------

> but then ntfs/fat volumes will be
> owned by root.

What a pity! It is not a problem for me since my USB pens use to have
ext2 file systems (or even ext3, for the USB pen I have used here),
but for a more general use it would be annoying. 

Regards, 
LuX. 


Reply via email to