Hello community, here is the log from the commit of package xfce4-session for openSUSE:11.4 checked in at Fri Jan 13 18:07:36 CET 2012.
-------- --- old-versions/11.4/all/xfce4-session/xfce4-session.changes 2011-02-18 01:22:14.000000000 +0100 +++ 11.4/xfce4-session/xfce4-session.changes 2012-01-10 18:22:06.000000000 +0100 @@ -1,0 +2,8 @@ +Tue Jan 10 16:12:46 UTC 2012 - [email protected] + +- added xfce4-session-lock-screen-on-suspend-hibernate.patch in + order to try to locking the screen when hibernating/suspending + when xfce4-power-manager is configured to do so (bnc#740566, + bxo#6019) + +------------------------------------------------------------------- Package does not exist at destination yet. Using Fallback old-versions/11.4/all/xfce4-session Destination is old-versions/11.4/UPDATES/all/xfce4-session calling whatdependson for 11.4-i586 New: ---- xfce4-session-lock-screen-on-suspend-hibernate.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xfce4-session.spec ++++++ --- /var/tmp/diff_new_pack.viIEH4/_old 2012-01-13 18:00:31.000000000 +0100 +++ /var/tmp/diff_new_pack.viIEH4/_new 2012-01-13 18:00:31.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package xfce4-session # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,11 +19,11 @@ Name: xfce4-session Version: 4.8.0 -Release: 7.<RELEASE3> -License: GPLv2+ +Release: 7.<RELEASE12> Summary: Xfce Session manager -Url: http://www.xfce.org/projects/xfce4-session/ +License: GPL-2.0+ Group: System/GUI/XFCE +Url: http://www.xfce.org/projects/xfce4-session/ Source: %{name}-%{version}.tar.bz2 Patch0: xfce4-session-4.7.1-fix-missing-include.patch # PATCH-FEATURE-OPENSUSE xfce4-session-simple-splash-remove-shadows.patch [email protected] -- Improves readability of the simple splash engine text by removing the text shadows @@ -34,23 +34,25 @@ Patch3: xfce4-session-4.8.0-fix-error-popup-on-session-menu-item.patch # PATCH-FIX-UPSTREAM xfce4-session-4.8.0-do-not-fall-back-to-system-icons.patch [email protected] -- Prevents the logout dialog from falling back to system-* rather than xfsm-* icons (backported from upstream git) Patch4: xfce4-session-4.8.0-do-not-fall-back-to-system-icons.patch +# PATCH-FEATURE-UPSTREAM xfce4-session-lock-screen-on-suspend-hibernate.patch bxo#6019 [email protected] -- Try to lock the screen when hibernating/suspending +Patch5: xfce4-session-lock-screen-on-suspend-hibernate.patch +BuildRequires: docbook-xsl-stylesheets +BuildRequires: docbook_4 BuildRequires: intltool +BuildRequires: libxslt BuildRequires: perl-XML-Parser +BuildRequires: update-desktop-files +BuildRequires: xml2po +BuildRequires: xorg-x11 BuildRequires: pkgconfig(dbus-glib-1) +BuildRequires: pkgconfig(gconf-2.0) +BuildRequires: pkgconfig(gnome-keyring-1) BuildRequires: pkgconfig(libwnck-1.0) +BuildRequires: pkgconfig(libxfce4panel-1.0) BuildRequires: pkgconfig(libxfce4ui-1) BuildRequires: pkgconfig(libxfce4util-1.0) -BuildRequires: pkgconfig(libxfce4panel-1.0) BuildRequires: pkgconfig(libxfcegui4-1.0) BuildRequires: pkgconfig(libxfconf-0) -BuildRequires: pkgconfig(gconf-2.0) -BuildRequires: pkgconfig(gnome-keyring-1) -BuildRequires: update-desktop-files -BuildRequires: xorg-x11 -BuildRequires: libxslt -BuildRequires: xml2po -BuildRequires: docbook_4 -BuildRequires: docbook-xsl-stylesheets Requires: %{name}-branding >= %{version} Requires: xfce-utils Recommends: fortune @@ -60,7 +62,7 @@ xfce4-session is the session manager for the Xfce desktop environment. %package devel -License: GPLv2+ + Summary: Development files for xfce4-session Group: Development/Libraries/C and C++ Requires: %{name} = %{version} @@ -77,8 +79,9 @@ This package contains development files needed to develop custom splash themes. %package branding-upstream -License: GPLv2+ + Summary: Upstream branding of xfce4-session +Group: System/GUI/XFCE Supplements: packageand(%{name}:branding-upstream) Provides: %{name}-branding = %{version} Conflicts: otherproviders(%{name}-branding) @@ -98,6 +101,7 @@ %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %build %configure \ ++++++ xfce4-session-lock-screen-on-suspend-hibernate.patch ++++++ Index: xfce4-session-4.8.2/xfce4-session/xfsm-shutdown-helper.c =================================================================== --- xfce4-session-4.8.2.orig/xfce4-session/xfsm-shutdown-helper.c +++ xfce4-session-4.8.2/xfce4-session/xfsm-shutdown-helper.c @@ -71,6 +71,8 @@ #include <libxfce4util/libxfce4util.h> +#include <xfconf/xfconf.h> + #include "xfsm-shutdown-helper.h" #include "xfsm-global.h" @@ -1722,6 +1724,24 @@ gboolean xfsm_shutdown_helper_send_passw return TRUE; } +static void +lock_screen (void) +{ + XfconfChannel *channel; + gboolean ret; + gint exit_status; + + channel = xfconf_channel_get ("xfce4-power-manager"); + if (xfconf_channel_get_bool (channel, "/xfce4-power-manager/lock-screen-suspend-hibernate", TRUE)) + { + ret = g_spawn_command_line_sync ("xflock4", NULL, NULL, &exit_status, NULL); + if (!ret || exit_status != 0) + { + g_warning ("Could not lock screen"); + } + } +} + /** * xfsm_shutdown_helper_shutdown: * @@ -1785,6 +1805,8 @@ gboolean xfsm_shutdown_helper_suspend (X { g_return_val_if_fail (!error || !*error, FALSE); + lock_screen (); + #ifdef ENABLE_UPOWER if ( helper->sleep_backend == XFSM_SLEEP_BACKEND_UPOWER ) { @@ -1812,6 +1834,8 @@ gboolean xfsm_shutdown_helper_hibernate { g_return_val_if_fail (!error || !*error, FALSE); + lock_screen (); + #ifdef ENABLE_UPOWER if ( helper->sleep_backend == XFSM_SLEEP_BACKEND_UPOWER ) { continue with "q"... Remember to have fun... -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
