When the HAL shutdown/reboot fails ** (xfce4-session:1896): WARNING **: xfsm-shutdown-helper.c:234: Failed to contact HAL: org.freedesktop.hal.power-management.shutdown no <-- (action, result) an empty message box with just a STOP-sign is shown. The following error message appears on console while message box is displayed: (xfce4-session:1896): Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error on line 3 char 52: '-' is not a valid character following a '<' character; it may not begin an element name The code responsible for it is probably at the end of shutdown.c: result = xfsm_shutdown_helper_send_command (shutdown_helper, type, &error); xfsm_shutdown_helper_destroy (shutdown_helper); shutdown_helper = NULL; if (!result) { xfce_message_dialog (NULL, _("Shutdown Failed"), GTK_STOCK_DIALOG_ERROR, _("Unable to perform shutdown"), error->message, GTK_STOCK_QUIT, GTK_RESPONSE_ACCEPT, NULL); g_error_free (error); return EXIT_FAILURE; } result is false and I guess error->message contains the error message printed on HAL failure "<-- (action,result)"...
Brian, should the error->message be escaped with g_markup_escape_text () ?
Well, it shouldn't be in the sense that I consider it a bug that a GError ends up with text in it that needs to be escaped. Sigh. But I guess that's the only solution. Though that doesn't solve Oliver's actual problem with shutting down -- I have no idea what that error message means. I'm also not sure why the error includes the string "org.freedesktop.hal.power-management.shutdown"... the correct method name is "org.freedesktop.Hal.PowerManagement.Shutdown".
as already stated on the ml it might be a problem of PolicyKit olivleh1@kartoffel olivleh1> dbus-send --system --dest=org.freedesktop.Hal --type=method_call --print-reply /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Reboot Error org.freedesktop.Hal.Device.PermissionDeniedByPolicy: org.freedesktop.hal.power-management.reboot no <-- (action, result) Exit 1 when adding <match user="myuser"> <return result="yes"/> </match> dbus-send makes my system reboot. But I thought, that <define_admin_auth group="wheel"/> is enough in PolicyKit.conf to grant me the needed permissions to reboot my system. It might be a hal/polkit/dbus problem but I fear the users writing me as the FreeBSD port maintainer tons of mails complaining they can't reboot/shutdown their systems and I've to tell them to adjust their PolicyKit.conf.... isn't there an easier solution?
I don't know. I've never used PK and I don't particularly care about it.
OK - on FreeBSD - hal gets installed together with policykit support unconditionally everytime. But I see - not your problem either.
Pretty sure nick fixed this in xfce_message_dialog() in libxfcegui4.