The bug is in xfce4-session/xfce-screensaver.c (and in xfce4-session /xfsm-systemd.c before git commit 9fa8c63b4377bcb46b8471da509ff8bd909c4bf0).
A locker should be called syncronously, not by g_spawn_command_line_async (), but by g_spawn_command_line_sync () or directly by g_spawn_sync(), and the provided exit_status should be taken into account. https://developer.gnome.org/glib/stable/glib-Spawning-Processes.html#g-spawn-command-line-sync I.e. something like this: gint *exit_status g_spawn_command_line_sync ("xflock4", NULL, NULL, exit_status, NULL); if (exit_status != NULL && *exit_status == 0) return TRUE; return FALSE; -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1054299 Title: Race condition in suspend scripts reveals desktop To manage notifications about this bug go to: https://bugs.launchpad.net/unity/+bug/1054299/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
