Since the proposed patch was not accepted by the Ubuntu devs that
maintain gnome-session, nor any alternative component was suggested to
try to patch that instead, we didn't upload a patched gnome-session in
the ts.sch.gr PPA for 12.04, it's only there for 10.04. So no point in
adding the PPA in 12.04, it doesn't help with this problem.

We've developed Epoptes instead, which can shut down the LTSP clients in
any Desktop Environment.

If upstream Gnome and Gnobuntu don't deprecate gnome-fallback, we'll try
to send a patch there, otherwise Gnome will be unusable with LTSP in the
future anyway, at least for thin clients (3d/llvmpipe over the network
is extremely slow, and Unity-2D support was dropped). So maybe LTSP in
the future will propose XFCE/LXDE instead of Gnome.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-session in Ubuntu.
https://bugs.launchpad.net/bugs/491940

Title:
  Patch for LTSP clients to properly reboot/shutdown

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

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;
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/491940/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to