Reopening in LTSP, as it seems we'll need to find another method in
order to get working shutdown/reboot menus, and I'm not sure if we have
enough time left to make it for Lucid.

Maybe the indicator-session applet could be patched instead, like fusa
was in previous releases, although patching gnome-session was much
better because it worked with the session dialog as well, and with
applications like iTalc that directly call dbus.

It'll be the first LTS release with that problem... if any fellow
teacher needs a patched gnome-session to avoid having to explain to the
students why the reboot/shutdown menus in Ubuntu are not working, he may
find one in the PPA for Greek schools:
https://launchpad.net/~ts.sch.gr/+archive/ppa/

** Changed in: ltsp (Ubuntu)
       Status: Fix Released => Confirmed

** Changed in: ltsp (Ubuntu)
     Assignee: Alkis Georgopoulos (alkisg) => (unassigned)

-- 
Patch for LTSP clients to properly reboot/shutdown
https://bugs.launchpad.net/bugs/491940
You received this bug notification because you are a member of Edubuntu
Bugsquad, which is subscribed to ltsp in ubuntu.

Status in “gnome-session” package in Ubuntu: New
Status in “ltsp” package in Ubuntu: Confirmed

Bug description:
Binary package hint: gnome-session

Please consider the following 4 lines for inclusion to 
debian/patch/95_dbus_request_shutdown.patch.
Those lines make LTSP clients properly reboot/shutdown.


gboolean
gsm_manager_request_shutdown (GsmManager *manager,
                              GError    **error)
{
        g_debug ("GsmManager: RequestShutdown called");

        g_return_val_if_fail (GSM_IS_MANAGER (manager), FALSE);

        if (manager->priv->phase != GSM_MANAGER_PHASE_RUNNING) {
                g_set_error (error,
                             GSM_MANAGER_ERROR,
                             GSM_MANAGER_ERROR_NOT_IN_RUNNING,
                             "RequestShutdown interface is only available 
during the Running phase");
                return FALSE;
        }

+       if (g_getenv ("LTSP_CLIENT"))
+               g_spawn_command_line_async("xprop -root -f LDM_LOGOUT_ACTION 8s 
-set LDM_LOGOUT_ACTION HALT", error);

        request_shutdown (manager);

        return TRUE;
}

gboolean
gsm_manager_request_reboot (GsmManager *manager,
                            GError    **error)
{
        g_debug ("GsmManager: RequestReboot called");

        g_return_val_if_fail (GSM_IS_MANAGER (manager), FALSE);

        if (manager->priv->phase != GSM_MANAGER_PHASE_RUNNING) {
                g_set_error (error,
                             GSM_MANAGER_ERROR,
                             GSM_MANAGER_ERROR_NOT_IN_RUNNING,
                             "RequestReboot interface is only available during 
the Running phase");
                return FALSE;
        }

+        if (g_getenv ("LTSP_CLIENT"))
+               g_spawn_command_line_async("xprop -root -f LDM_LOGOUT_ACTION 8s 
-set LDM_LOGOUT_ACTION REBOOT", error);

        request_reboot (manager);

        return TRUE;
}



-- 
edubuntu-devel mailing list
edubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/edubuntu-devel

Reply via email to