Comment 70 for bug 546992

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote : Re: Xubuntu 10.04 USB, CD and DVD automount fails if autologin is on

Hi Martin,

I think that the bug lies in hal finally. :p

I added fprintfs in libthunar-vfs, and the init code fails with libhal_ctx_init(). So I added also some printfs in libhal_ctx_init(), and it fails at:

hald_exists = dbus_bus_name_has_owner (ctx->connection, "org.freedesktop.Hal", &_error);
[...]
if (!hald_exists) {
                return FALSE;
        }

Because hal doesn't exist on the dbus at this time apparently. But it works fine if I restart Thunar later, so there might be a race condition somewhere? Anyway, dbus api doc clearly states that using this function can easily result in a race condition, so I don't really understand why libhal.c uses it...

Any idea, thoughts, tests to do? Thanks!