debian/0000775000000000000000000000000012010465643007171 5ustar debian/polkit-gnome-authentication-agent-1.desktop0000664000000000000000000001110411707275773017454 0ustar [Desktop Entry] Name=PolicyKit Authentication Agent Name[ar]=مدير الاستيثاق PolicyKit Name[be]=PolicyKit - аґент аўтэнтыфікацыі Name[bn_IN]=PolicyKit অনুমোদনের এজেন্ট Name[ca]=Agent d'autenticació del PolicyKit Name[cs]=Ověřovací agent PolicyKit Name[da]=Godkendelsesprogrammet PolicyKit Name[de]=Legitimationsdienst von PolicyKit Name[el]=Πράκτορας πιστοποίησης PolicyKit Name[en_GB]=PolicyKit Authentication Agent Name[es]=Agente de autenticación de PolicyKit Name[eu]=PolicyKit autentifikatzeko agentea Name[fi]=PolicytKit-tunnistautumisohjelma Name[fr]=Agent d'authentification de PolicyKit Name[gl]=Axente de autenticación PolicyKit Name[gu]=PolicyKit સત્તાધિકરણ એજન્ટ Name[hi]=PolicyKit प्रमाणीकरण प्रतिनिधि Name[hu]=PolicyKit hitelesítési ügynök Name[it]=Agente di autenticazione per PolicyKit Name[ja]=PolicyKit 認証エージェント Name[kn]=PolicyKit ದೃಢೀಕರಣ ಮಧ್ಯವರ್ತಿ Name[lt]=PolicyKit tapatybės nustatymo agentas Name[ml]=പോളിസിക്കിറ്റ് ഓഥന്റിക്കേഷന്‍ ഏജന്റ് Name[mr]=PolicyKit ऑथेंटीकेशन एजेंट Name[or]=PolicyKit ବୈଧିକରଣ ସଦସ୍ୟ Name[pa]=ਪਾਲਸੀਕਿੱਟ ਪਰਮਾਣਕਿਤਾ ਏਜੰਟ Name[pl]=Agent uwierzytelniania PolicyKit Name[pt]=Agente de Autenticação PolicyKit Name[pt_BR]=Agente de autenticação PolicyKit Name[ro]=Agent de autentificare PolicyKit Name[sk]=Agent PolicyKit na overovanie totožnosti Name[sl]=PolicyKit program overjanja Name[sv]=Autentiseringsagent för PolicyKit Name[ta]=PolicyKit அங்கீகார முகவர் Name[te]=పాలసీకిట్ ధృవీకరణ ప్రతినిధి Name[th]=ตัวกลางสำหรับยืนยันตัวบุคคล PolicyKit Name[uk]=Агент автентифікації PolicyKit Name[zh_CN]=PolicyKit 认证代理 Name[zh_HK]=PolicyKit 驗證代理程式 Name[zh_TW]=PolicyKit 驗證代理程式 Comment=PolicyKit Authentication Agent Comment[ar]=مدير الاستيثاق PolicyKit Comment[be]=PolicyKit - аґент аўтэнтыфікацыі Comment[bn_IN]=PolicyKit অনুমোদনের এজেন্ট Comment[ca]=Agent d'autenticació del PolicyKit Comment[cs]=Ověřovací agent PolicyKit Comment[da]=Godkendelsesprogrammet PolicyKit Comment[de]=Legitimationsdienst von PolicyKit Comment[el]=Πράκτορας πιστοποίησης PolicyKit Comment[en_GB]=PolicyKit Authentication Agent Comment[es]=Agente de autenticación de PolicyKit Comment[eu]=PolicyKit autentifikatzeko agentea Comment[fi]=PolicytKit-tunnistautumisohjelma Comment[fr]=Agent d'authentification de PolicyKit Comment[gl]=Axente de autenticación PolicyKit Comment[gu]=PolicyKit સત્તાધિકરણ એજન્ટ Comment[hi]=PolicyKit प्रमाणीकरण प्रतिनिधि Comment[hu]=PolicyKit hitelesítési ügynök Comment[it]=Agente di autenticazione per PolicyKit Comment[ja]=PolicyKit 認証エージェント Comment[kn]=PolicyKit ದೃಢೀಕರಣ ಮಧ್ಯವರ್ತಿ Comment[lt]=PolicyKit tapatybės nustatymo agentas Comment[ml]=പോളിസിക്കിറ്റ് ഓഥന്റിക്കേഷന്‍ ഏജന്റ് Comment[mr]=PolicyKit ऑथेंटीकेशन एजेंट Comment[or]=PolicyKit ବୈଧିକରଣ ସଦସ୍ୟ Comment[pa]=ਪਾਲਸੀਕਿੱਟ ਪਰਮਾਣਕਿਤਾ ਏਜੰਟ Comment[pl]=Agent uwierzytelniania PolicyKit Comment[pt]=Agente de Autenticação PolicyKit Comment[pt_BR]=Agente de autenticação PolicyKit Comment[ro]=Agent de autentificare PolicyKit Comment[sk]=Agent PolicyKit na overovanie totožnosti Comment[sl]=PolicyKit program overjanja Comment[sv]=Autentiseringsagent för PolicyKit Comment[ta]=PolicyKit அங்கீகார முகவர் Comment[te]=పాలసీకిట్ ధృవీకరణ ప్రతినిధి Comment[th]=ตัวกลางสำหรับยืนยันตัวบุคคล PolicyKit Comment[uk]=Агент автентифікації PolicyKit Comment[zh_CN]=PolicyKit 认证代理 Comment[zh_HK]=PolicyKit 驗證代理程式 Comment[zh_TW]=PolicyKit 驗證代理程式 Exec=/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 Terminal=false Type=Application Categories= NoDisplay=true OnlyShowIn=GNOME;XFCE;Unity; X-GNOME-AutoRestart=true AutostartCondition=GNOME3 unless-session gnome debian/copyright0000664000000000000000000000420711707275773011146 0ustar This package was debianized by Michael Biebl on Fri, 27 Jul 2007 06:37:19 +0200. It was downloaded from http://hal.freedesktop.org/releases/ Upstream Author: David Zeuthen Copyright: Copyright (C) 2009 Red Hat, Inc. License: This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA On Debian systems, the complete text of the GNU Library General Public License can be found in `/usr/share/common-licenses/LGPL-2'. =============================================================================== The API documentation (docs/*) licensed under the GFDL version 1.1 or later. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. You may obtain a copy of the GNU Free Documentation License from the Free Software Foundation by visiting their Web site or by writing to: Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian systems, the complete text of the GNU Free Documentation License can be found in `/usr/share/common-licenses/GFDL'. =============================================================================== The Debian packaging is (C) 2007-2009, Michael Biebl and is licensed under the GPL, see above. debian/control0000664000000000000000000000174411707275773010621 0ustar Source: policykit-1-gnome Section: gnome Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Utopia Maintenance Team Uploaders: Michael Biebl , Martin Pitt Build-Depends: debhelper (>= 8), dpkg-dev (>= 1.6.1), autotools-dev, pkg-config, libgtk-3-dev (>= 3.0.0), libpolkit-agent-1-dev (>= 0.97), libpolkit-gobject-1-dev (>= 0.97), gtk-doc-tools (>= 1.3), dh-autoreconf, dh-translations Standards-Version: 3.9.2 Vcs-Bzr: http://code.launchpad.net/~ubuntu-desktop/policykit-1-gnome/ubuntu Homepage: http://hal.freedesktop.org/docs/PolicyKit-gnome/ Package: policykit-1-gnome Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, policykit-1 Description: GNOME authentication agent for PolicyKit-1 PolicyKit-gnome provides a D-Bus session bus service that is used to bring up authentication dialogs used for obtaining privileges. debian/rules0000775000000000000000000000055011707275773010270 0ustar #!/usr/bin/make -f DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk %: dh $@ --with autoreconf,translations export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,-z,defs -Wl,--as-needed override_dh_auto_configure: dh_auto_configure -- \ --disable-examples \ --enable-gtk-doc \ --disable-introspection override_dh_auto_test: debian/watch0000664000000000000000000000014411707275773010240 0ustar version=3 http://ftp.gnome.org/pub/GNOME/sources/polkit-gnome/([\d\.]+)/polkit-gnome-(.*)\.tar\.xz debian/source/0000775000000000000000000000000011707275773010510 5ustar debian/source/format0000664000000000000000000000001411707275773011716 0ustar 3.0 (quilt) debian/changelog0000664000000000000000000003503212010465031011035 0ustar policykit-1-gnome (0.105-1ubuntu4) quantal; urgency=low * debian/patches/08-fresh-x11-timestamps.patch: use fresh X11 timestamps when displaying authentication dialog to circumvent focus-stealing prevention. (LP: #946171) -- Jeffrey Knockel Fri, 27 Jul 2012 00:41:43 -0600 policykit-1-gnome (0.105-1ubuntu3) precise; urgency=low * debian/patches/07-use-accountsservice.patch: get user icon from accountsservice instead of looking in ~/.face. (LP: #928249) -- Marc Deslauriers Sat, 11 Feb 2012 00:08:29 -0500 policykit-1-gnome (0.105-1ubuntu2) precise; urgency=low * debian/rules: Build with dh-translations, also build-depend on it. LP: #910286 -- Gabor Kelemen Mon, 23 Jan 2012 16:25:37 +0100 policykit-1-gnome (0.105-1ubuntu1) precise; urgency=low * Merge with Debian testing, remaining changes: - 04-autorestart.patch: Add gnome session restart support to ensure we always have an authentication agent running. To be forwarded upstream. - 06-authentication-failure-string.patch: Improve error message displayed when authentication fails. - Tell the .desktop file for the authentication agent to auto-restart the agent in case of failure. * debian/patches/04-autorestart.patch: - Update to use GDBus instead of DBusGLib -- Michael Terry Mon, 19 Dec 2011 09:25:17 -0500 policykit-1-gnome (0.105-1) unstable; urgency=low * New upstream release. * Refresh debian/patches/0001-Revert-Drop-marshaller-complications.patch. * Enable default hardening options from dpkg-buildflags. - Use buildflags.mk snippet in debian/rules. - Add Build-Depends on dpkg-dev (>= 1.6.1). -- Michael Biebl Sat, 12 Nov 2011 02:03:55 +0100 policykit-1-gnome (0.104-2) unstable; urgency=low * Revert upstream commit which drops the custom marshaller and uses the generic marshaller from GLib. This requires GLib >= 2.30 which is not yet in unstable. (Closes: #646521) * Use dh-autoreconf to update the build system. -- Michael Biebl Tue, 25 Oct 2011 17:01:01 +0200 policykit-1-gnome (0.104-1) unstable; urgency=low [ Martin Pitt ] * debian/polkit-gnome-authentication-agent-1.desktop: Add Unity to OnlyShowIn. [ Michael Biebl ] * debian/watch: - Track .xz tarballs. - Change the download location to the GNOME ftp server. * New upstream release. * Drop libpolkit-gtk packages, removed upstream. * Update Build-Depends on libgtk2.0-dev to libgtk-3-dev (>= 3.0.0). -- Michael Biebl Sat, 22 Oct 2011 21:01:34 +0200 policykit-1-gnome (0.102-2ubuntu2) precise; urgency=low * debian/control: Put back libdbus-glib-1-dev build dependency, still needed by 04-autorestart.patch. -- Martin Pitt Thu, 20 Oct 2011 08:46:06 +0200 policykit-1-gnome (0.102-2ubuntu1) precise; urgency=low * Merge with Debian unstable. Remaining Ubuntu changes: - 04-autorestart.patch: Add gnome session restart support to ensure we always have an authentication agent running. To be forwarded upstream. - 06-authentication-failure-string.patch: Improve error message displayed when authentication fails. - Tell the .desktop file for the authentication agent to auto-restart the agent in case of failure. - debian/rules: Use dh-autoreconf to reconfigure after applying patches, especially for 04-autorestart.patch. Add dh-autoreconf build dependency. - debian/polkit-gnome-authentication-agent-1.desktop: Add "Unity" to OnlyShowIn. -- Martin Pitt Wed, 19 Oct 2011 15:39:08 +0200 policykit-1-gnome (0.102-2) unstable; urgency=low * Drop Build-Depends on libdbus-glib-1-dev (ported to GDBus). * Don't start PolicyKit authentication agent in a default GNOME 3 desktop session as gnome-shell provides its own implementation. (Closes: #619432) -- Michael Biebl Mon, 26 Sep 2011 15:51:11 +0200 policykit-1-gnome (0.102-1) unstable; urgency=low * New upstream release. * Remove brace expansion from .install file. * Bump Standards-Version to 3.9.2. No further changes. -- Michael Biebl Tue, 16 Aug 2011 23:51:13 +0200 policykit-1-gnome (0.101-2) unstable; urgency=low * Upload to unstable. -- Michael Biebl Fri, 25 Mar 2011 03:23:38 +0100 policykit-1-gnome (0.101-1) experimental; urgency=low * New upstream release. * Update patches - Drop debian/patches/01-fix-autostart.patch, obsolete. - Drop debian/patches/03-po-pt_BR.patch, merged upstream. - Refresh debian/patches/02-select-default-user.patch to apply cleanly. * Switch from cdbs to dh. * Bump debhelper compatibility level to 8. * Install documentation using debian/policykit-1-gnome.docs. * Ship a copy of the old autostart file for the PolicyKit authentication agent. It was removed upstream in preparation for GNOME3 which starts its own authentication agent. -- Michael Biebl Fri, 04 Mar 2011 00:19:00 +0100 policykit-1-gnome (0.99-2) unstable; urgency=low [ Robert Ancell ] * Drop 03-dialog-focus.patch. PolicyKit does not allow non-root applications to set details (LP: #685655) [ Michael Biebl ] * Upload to unstable. -- Michael Biebl Thu, 10 Feb 2011 19:51:33 +0100 policykit-1-gnome (0.99-1) experimental; urgency=low [ Michael Biebl ] * New upstream release. - Port to GDBus fixes recursion in type registration. (Closes: #567303) * debian/patches/00git-hide-agent-autostart.patch - Remove, merged upstream. * Switch to source format 3.0 (quilt). - Add debian/source/format. - Drop Build-Depends on quilt. - Remove /usr/share/cdbs/1/rules/patchsys-quilt.mk from debian/rules. - Remove debian/README.source. * debian/control - Bump Standards-Version to 3.9.1. No further changes. - Bump Build-Depends on libpolkit-agent-1-dev and libpolkit-gobject-1-dev to (>= 0.97). [ Robert Ancell ] * Add debian/patches/03-dialog-focus.patch: Add toplevel_xid to set transient window for authentication dialog. This ensures that the auth window gets and keeps focus when it pops up. (LP: #433851) -- Martin Pitt Thu, 04 Nov 2010 17:40:12 -0400 policykit-1-gnome (0.96-3) unstable; urgency=low * debian/patches/03-po-pt_BR.patch - Updated Brazilian Portuguese (pt_BR) translation. (Closes: #599539) Thanks Sérgio Cipolla! -- Michael Biebl Wed, 17 Nov 2010 04:27:11 +0100 policykit-1-gnome (0.96-2) unstable; urgency=low * 01-fix-autostart.patch: Restore OnlyShowIn, now that polkit-qt-1 exists. * Add 00git-hide-agent-autostart.patch: Set NoDisplay=true in the agent autostart file, so that it does not appear in the Session capplet any more. This prevents users from shooting themselves into the foot. Patch committed to and backported from upstream trunk. (LP: #509798) * debian/control: Bump Standards-Version to 3.8.4 (no changes necessary). -- Martin Pitt Mon, 22 Feb 2010 22:40:26 +0100 policykit-1-gnome (0.96-1) unstable; urgency=low * New upstream release. -- Michael Biebl Sat, 16 Jan 2010 00:16:52 +0100 policykit-1-gnome (0.95-1) unstable; urgency=low * New upstream release. * debian/control - Bump Build-Depends on libpolkit-{agent,gobject}-1-dev to (>= 0.95). * Remove debian/patches/03-status-icon-whitespace.patch, merged upstream. * debian/rules - Disable instrospection support. * debian/libpolkit-gtk-1-0.symbols - Update for new API additions. -- Michael Biebl Sat, 14 Nov 2009 06:04:06 +0100 policykit-1-gnome (0.94-2) unstable; urgency=low [ Martin Pitt ] * Add 03-status-icon-whitespace.patch: Fix leftover white-space in the notification area after hiding the icon. Thanks to Chris Coulson for the patch! (https://bugzilla.gnome.org/show_bug.cgi?id=597346) * Add myself to Uploaders:, with Michael's consent. [ Michael Vogt ] * rename debian/patches/01-xfce-autostart.patch to debian/patches/01-fix-autostart.patch * debian/patches/01-fix-autostart.patch: - comment the OnlyShowIn line out to make it autostart on KDE as well (LP: #444661) (until KDE gets its own native agent) [ Robert Ancell ] * Add 02-select-default-user.patch: Select the current user to authenticate with by default (LP: #435227) -- Martin Pitt Tue, 03 Nov 2009 12:19:34 +0100 policykit-1-gnome (0.94-1) unstable; urgency=low * New upstream version which uses the new PolicyKit-1 API. Rename the package to make it co-installable with policykit-gnome until everything is ported over. * Drop all patches, as they no longer apply or have been fixed upstream. * debian/control - Update Build-Depends + Drop libgnome2-dev, libgnomeui-dev, libpolkit-dbus-dev, libpolkit-grant-dev, gnome-doc-utils and libxml-parser-perl. + Add libpolkit-{agent,gobject}-dev (>= 0.93). + Bump libgtk2.0-dev to (>= 2.17.1) and gtk-doc-tools to (>= 1.3). - Bump Standards-Version to 3.8.3. + Add README.source which refers to the quilt documentation. - Update Vcs-* fields. Package is now managed using Git and hosted on git.debian.org. * Update package layout - Rename policykit-gnome → policykit-1-gnome. - Update libpolkit-gnome → libpolkit-gtk. - Drop policykit-gnome-doc, include API documentation in libpolkit-gtk-1-dev. * Update and revise all *.install files. * Add symbols file for libpolkit-gtk. * debian/patches/01-xfce-autostart.patch - Start authentication agent in XFCE as well. (LP: #417462) * debian/rules - Enable API documentation. * Update watch file. * debian/copyright - Update copyright holder. - The complete package (besides the documentation) is now LGPL-2+. -- Michael Biebl Mon, 28 Sep 2009 00:13:17 +0200 policykit-gnome (0.9.2-2) unstable; urgency=low * debian/patches/05-fix-actions.patch - Pull patch from Fedora CVS to make actions work again. When blocking "clicked" because the user is not authenticated it should emit "auth-start" so that the user is invited to authenticate. (Closes: #524836) * debian/patches/05-no-commas.patch - Don't show excess commas when displaying user's real name. Patch pulled from Ubuntu. -- Michael Biebl Mon, 27 Apr 2009 11:39:07 +0200 policykit-gnome (0.9.2-1) unstable; urgency=low * New upstream release. * debian/control - Bump Build-Depends on libgtk2.0-dev to (>= 2.13.6). - Drop Build-Depends on libsexy-dev. - Bump Standards-Version to 3.8.1. No further changes. -- Michael Biebl Tue, 17 Mar 2009 23:22:12 +0100 policykit-gnome (0.9-2) unstable; urgency=low * debian/control - Wrap Build-Depends. - Add ${misc:Depends} to all binary packages. - Bump Build-Depends on debhelper to (>= 7). - Bump Build-Depends on libpolkit-{dbus,grant}-dev to (>= 0.9). - Bump Depends on policykit to (>= 0.9). * debian/compat - Bump debhelper compat level to 7. * Switch patch management system to quilt. * debian/copyright - Revise copyright notice with regard to polkit-gnome, which is licsensed under the LGPL v2. - Refer to /usr/share/common-licenses/GPL-2 instead of the unversioned symlink. -- Michael Biebl Wed, 18 Feb 2009 18:05:29 +0100 policykit-gnome (0.9-1) unstable; urgency=low * New upstream release. * debian/control - Bump Standards-Version to 3.8.0. No further changes. * debian/patches/03-fix_i18n.patch - Removed, merged upstream. -- Michael Biebl Sun, 03 Aug 2008 11:13:52 +0200 policykit-gnome (0.8-2) unstable; urgency=low * debian/patches/03-fix_i18n.patch - Set the correct gettext domain to make the translations show up. Thanks to James Westby for the patch. (Closes: #482066) * Add symbols file for libpolkit-gnome0. -- Michael Biebl Fri, 23 May 2008 05:23:30 +0200 policykit-gnome (0.8-1) unstable; urgency=low * New upstream release. * debian/control - Add Build-Depends on pkg-config. * debian/patches/01-missing_polkit_grant_lib.patch - Removed, merged upstream. -- Michael Biebl Fri, 18 Apr 2008 02:21:22 +0200 policykit-gnome (0.7-2) unstable; urgency=low * Upload to unstable. -- Michael Biebl Fri, 11 Jan 2008 01:31:33 +0100 policykit-gnome (0.7-1) experimental; urgency=low * New upstream release. * debian/control - Bump Standards-Version to 3.7.3. No further changes required. - Change Homepage URL to http://hal.freedesktop.org/docs/PolicyKit-gnome/. - Add Build-Depends on libsexy-dev (>= 0.1.11). - Add Build-Depends on gtk-doc-tools. - Bump Build-Depends on libpolkit-{dbus,grant}-dev to (>= 0.7). - Add the new binary packages policykit-gnome-doc, libpolkit-gnome0 and libpolkit-gnome-dev. * debian/policykit-gnome-doc.{links,install} - Install the devhelp API documentation into /usr/share/doc/policykit-gnome-doc/html and create a link back to /usr/share/gtk-doc/html. * debian/libpolkit-gnome0.install - Install the libpolkit-gnome.so.* library. * debian/libpolkit-gnome-dev.install - Install the headers, pkgconfig file and libpolkit-gnome.{so,a}. * debian/patches/01-missing_polkit_grant_lib.patch - libpolkit-gnome uses libpolkit-grant, so we have to link against it. * debian/patches/02-desktop_file_categories.patch - Set the correct categories in the polkit-gnome-authorization desktop file. * debian/rules - Use -Wl,-z,defs to detect undefined symbols in object files. * debian/copyright - The package now ships documentation which is licensed under the GFDL. Update the copyright notice accordingly. -- Michael Biebl Thu, 20 Dec 2007 23:42:12 +0100 policykit-gnome (0.6-1) experimental; urgency=low * New upstream release. * debian/control - Use the new "Homepage:" field to specify the upstream URL. - The Vcs-* fields are now officially supported, so remove the XS- prefix. * debian/patches/01_no_tooltip.patch - Prevent building of the example binaries with the --disable-examples configure flag. This makes the patch obsolete and it is thus removed. -- Michael Biebl Sat, 03 Nov 2007 01:15:32 +0100 policykit-gnome (0.5-1) experimental; urgency=low * Initial release. (Closes: #442254) -- Michael Biebl Fri, 14 Sep 2007 14:24:03 +0200 debian/patches/0000775000000000000000000000000012010465211010607 5ustar debian/patches/06-authentication-failure-string.patch0000664000000000000000000000166511707275773020063 0ustar Description: Improve error message displayed when authentication fails Bug: https://bugzilla.gnome.org/show_bug.cgi?id=592978 Bug-Ubuntu: http://launchpad.net/bugs/411559 Index: policykit-1-gnome-0.105/src/polkitgnomeauthenticator.c =================================================================== --- policykit-1-gnome-0.105.orig/src/polkitgnomeauthenticator.c 2011-12-19 09:25:02.275695807 -0500 +++ policykit-1-gnome-0.105/src/polkitgnomeauthenticator.c 2011-12-19 09:25:02.343695805 -0500 @@ -454,7 +454,7 @@ { gchar *s; - s = g_strconcat ("", _("Authentication Failure"), "", NULL); + s = g_strconcat ("", _("Your authentication attempt was unsuccessful. Please try again."), "", NULL); polkit_gnome_authentication_dialog_set_info_message ( POLKIT_GNOME_AUTHENTICATION_DIALOG (authenticator->dialog), s); debian/patches/series0000664000000000000000000000035312010465031012025 0ustar # Debian patches for policykit-1-gnome 02-select-default-user.patch 0001-Revert-Drop-marshaller-complications.patch 04-autorestart.patch 06-authentication-failure-string.patch 07-use-accountsservice.patch 08-fresh-x11-timestamps.patch debian/patches/0001-Revert-Drop-marshaller-complications.patch0000664000000000000000000000735211707275773021410 0ustar From 197edf65526c6595c3860f9989fe99e56f6adc45 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Tue, 25 Oct 2011 16:53:22 +0200 Subject: [PATCH] Revert "Drop marshaller complications" This reverts commit 1d019a66f9eaf6cd472eecfa38ce462a1b12906c. --- src/Makefile.am | 9 +++++++++ src/polkitgnomeauthenticator.c | 3 ++- src/polkitgnomemarshal.list | 1 + 3 files changed, 12 insertions(+), 1 deletions(-) create mode 100644 src/polkitgnomemarshal.list Index: policykit-1-gnome/src/Makefile.am =================================================================== --- policykit-1-gnome.orig/src/Makefile.am 2011-11-12 01:47:11.000000000 +0100 +++ policykit-1-gnome/src/Makefile.am 2011-11-12 01:49:44.191662658 +0100 @@ -5,6 +5,13 @@ libexec_PROGRAMS = polkit-gnome-authentication-agent-1 +polkitgnomemarshal.h polkitgnomemarshal.c : Makefile.am $(srcdir)/polkitgnomemarshal.list + glib-genmarshal --prefix=_polkit_gnome_marshal $(srcdir)/polkitgnomemarshal.list --header > polkitgnomemarshal.h.tmp && mv polkitgnomemarshal.h.tmp polkitgnomemarshal.h + (echo "#include \"polkitgnomemarshal.h\""; glib-genmarshal --prefix=_polkit_gnome_marshal $(srcdir)/polkitgnomemarshal.list --body) > polkitgnomemarshal.c.tmp && mv polkitgnomemarshal.c.tmp polkitgnomemarshal.c + touch polkitgnomemarshal.stamp + +BUILT_SOURCES = polkitgnomemarshal.h polkitgnomemarshal.c + polkit_gnome_authentication_agent_1_SOURCES = \ polkitgnomelistener.h polkitgnomelistener.c \ polkitgnomeauthenticator.h polkitgnomeauthenticator.c \ @@ -42,5 +49,7 @@ $(POLKIT_GOBJECT_LIBS) \ $(INTLLIBS) +EXTRA_DIST = polkitgnomemarshal.list + clean-local : rm -f *~ Index: policykit-1-gnome/src/polkitgnomeauthenticator.c =================================================================== --- policykit-1-gnome.orig/src/polkitgnomeauthenticator.c 2011-11-12 01:47:11.000000000 +0100 +++ policykit-1-gnome/src/polkitgnomeauthenticator.c 2011-11-12 01:49:44.191662658 +0100 @@ -32,6 +32,7 @@ #include "polkitgnomeauthenticator.h" #include "polkitgnomeauthenticationdialog.h" +#include "polkitgnomemarshal.h" struct _PolkitGnomeAuthenticator { @@ -137,7 +138,7 @@ 0, /* class offset */ NULL, /* accumulator */ NULL, /* accumulator data */ - g_cclosure_marshal_generic, + _polkit_gnome_marshal_VOID__BOOLEAN_BOOLEAN, G_TYPE_NONE, 2, G_TYPE_BOOLEAN, Index: policykit-1-gnome/src/polkitgnomemarshal.list =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ policykit-1-gnome/src/polkitgnomemarshal.list 2011-11-12 01:49:44.191662658 +0100 @@ -0,0 +1 @@ +VOID:BOOLEAN,BOOLEAN Index: policykit-1-gnome/configure.ac =================================================================== --- policykit-1-gnome.orig/configure.ac 2011-11-12 01:47:11.115668073 +0100 +++ policykit-1-gnome/configure.ac 2011-11-12 01:50:39.551660700 +0100 @@ -123,16 +123,11 @@ POLKIT_AGENT_REQUIRED=0.97 POLKIT_GOBJECT_REQUIRED=0.97 GTK_REQUIRED=3.0.0 -GLIB_REQUIRED=2.30 PKG_CHECK_MODULES(GTK, gtk+-3.0 >= $GTK_REQUIRED) AC_SUBST(GTK_CFLAGS) AC_SUBST(GTK_LIBS) -PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED) -AC_SUBST(GLIB_CFLAGS) -AC_SUBST(GLIB_LIBS) - PKG_CHECK_MODULES(POLKIT_AGENT, polkit-agent-1 >= $POLKIT_AGENT_REQUIRED) AC_SUBST(POLKIT_AGENT_CFLAGS) AC_SUBST(POLKIT_AGENT_LIBS) debian/patches/08-fresh-x11-timestamps.patch0000664000000000000000000000267312010465210015766 0ustar Description: use fresh X11 timestamps when displaying authentication dialog to circumvent focus-stealing prevention. Author: Jeffrey Knockel Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/policykit-gnome/+bug/946171 Bug: https://bugzilla.gnome.org/show_bug.cgi?id=676076 Index: policykit-1-gnome-0.105/src/polkitgnomeauthenticator.c =================================================================== --- policykit-1-gnome-0.105.orig/src/polkitgnomeauthenticator.c 2012-07-27 00:39:09.000000000 -0600 +++ policykit-1-gnome-0.105/src/polkitgnomeauthenticator.c 2012-07-27 00:40:27.185547436 -0600 @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -307,7 +308,8 @@ } gtk_widget_show_all (GTK_WIDGET (authenticator->dialog)); - gtk_window_present (GTK_WINDOW (authenticator->dialog)); + gtk_window_present_with_time (GTK_WINDOW (authenticator->dialog), + gdk_x11_get_server_time (gtk_widget_get_window (GTK_WIDGET (authenticator->dialog)))); password = polkit_gnome_authentication_dialog_run_until_response_for_prompt (POLKIT_GNOME_AUTHENTICATION_DIALOG (authenticator->dialog), modified_request, echo_on, debian/patches/07-use-accountsservice.patch0000664000000000000000000001142111715377326016071 0ustar Description: get user icon from accountsservice instead of looking in ~/.face Author: Marc Deslauriers Forwarded: yes Bug: https://bugzilla.gnome.org/show_bug.cgi?id=669857 Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/policykit-1-gnome/+bug/928249 Index: policykit-1-gnome-0.105/src/polkitgnomeauthenticationdialog.c =================================================================== --- policykit-1-gnome-0.105.orig/src/polkitgnomeauthenticationdialog.c 2012-02-11 00:10:48.850913210 -0500 +++ policykit-1-gnome-0.105/src/polkitgnomeauthenticationdialog.c 2012-02-11 00:22:04.462930509 -0500 @@ -135,6 +135,102 @@ } } +static GdkPixbuf * +get_user_icon (char *username) +{ + GError *error; + GDBusConnection *connection; + GVariant *find_user_result; + GVariant *get_icon_result; + GVariant *icon_result_variant; + const gchar *user_path; + const gchar *icon_filename; + GdkPixbuf *pixbuf; + + error = NULL; + connection = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); + + if (connection == NULL) + { + g_warning ("Unable to connect to system bus: %s", error->message); + g_error_free (error); + return NULL; + } + + find_user_result = g_dbus_connection_call_sync (connection, + "org.freedesktop.Accounts", + "/org/freedesktop/Accounts", + "org.freedesktop.Accounts", + "FindUserByName", + g_variant_new ("(s)", + username), + G_VARIANT_TYPE ("(o)"), + G_DBUS_CALL_FLAGS_NONE, + -1, + NULL, + &error); + + if (find_user_result == NULL) + { + g_warning ("Accounts couldn't find user: %s", error->message); + g_error_free (error); + return NULL; + } + + user_path = g_variant_get_string (g_variant_get_child_value (find_user_result, 0), + NULL); + + get_icon_result = g_dbus_connection_call_sync (connection, + "org.freedesktop.Accounts", + user_path, + "org.freedesktop.DBus.Properties", + "Get", + g_variant_new ("(ss)", + "org.freedesktop.Accounts.User", + "IconFile"), + G_VARIANT_TYPE ("(v)"), + G_DBUS_CALL_FLAGS_NONE, + -1, + NULL, + &error); + + g_variant_unref (find_user_result); + + if (get_icon_result == NULL) + { + g_warning ("Accounts couldn't find user icon: %s", error->message); + g_error_free (error); + return NULL; + } + + g_variant_get_child (get_icon_result, 0, "v", &icon_result_variant); + icon_filename = g_variant_get_string (icon_result_variant, NULL); + + if (icon_filename == NULL) + { + g_warning ("Accounts didn't return a valid filename for user icon"); + pixbuf = NULL; + } + else + { + /* TODO: we probably shouldn't hard-code the size to 16x16 */ + pixbuf = gdk_pixbuf_new_from_file_at_size (icon_filename, + 16, + 16, + &error); + if (pixbuf == NULL) + { + g_warning ("Couldn't open user icon: %s", error->message); + g_error_free (error); + } + } + + g_variant_unref (icon_result_variant); + g_variant_unref (get_icon_result); + + return pixbuf; +} + static void create_user_combobox (PolkitGnomeAuthenticationDialog *dialog) { @@ -197,16 +293,7 @@ g_free (gecos); /* Load users face */ - pixbuf = NULL; - if (passwd->pw_dir != NULL) - { - gchar *path; - path = g_strdup_printf ("%s/.face", passwd->pw_dir); - /* TODO: we probably shouldn't hard-code the size to 16x16 */ - pixbuf = gdk_pixbuf_new_from_file_at_scale (path, 16, 16, TRUE, NULL); - g_free (path); - } - + pixbuf = get_user_icon (dialog->priv->users[n]); /* fall back to avatar-default icon */ if (pixbuf == NULL) { debian/patches/04-autorestart.patch0000664000000000000000000001376611707275773014473 0ustar ## Description: Add gnome session restart support to ensure we always have ## a authentication agent running ## Author: Michael Vogt ## Origin: inspired by the at-spi dbus support code ## Bug: http://launchpad.net/bugs/623819 Index: policykit-1-gnome-0.105/src/main.c =================================================================== --- policykit-1-gnome-0.105.orig/src/main.c 2011-10-25 11:30:59.000000000 -0400 +++ policykit-1-gnome-0.105/src/main.c 2011-12-19 09:23:47.635697248 -0500 @@ -38,11 +38,150 @@ static GDBusConnection *session_bus_connection = NULL; +// session management support for auto-restart +#define SM_DBUS_NAME "org.gnome.SessionManager" +#define SM_DBUS_PATH "/org/gnome/SessionManager" +#define SM_DBUS_INTERFACE "org.gnome.SessionManager" +#define SM_CLIENT_DBUS_INTERFACE "org.gnome.SessionManager.ClientPrivate" + +static GDBusProxy *sm_proxy; +static GDBusProxy *client_proxy = NULL; + +static GMainLoop *loop; + + +static void +stop_cb (void) +{ + g_main_loop_quit (loop); +} + +static gboolean +end_session_response (gboolean is_okay, const gchar *reason) +{ + GVariant *res; + GError *error = NULL; + + res = g_dbus_proxy_call_sync (client_proxy, + "EndSessionResponse", + g_variant_new ("(bs)", + is_okay, + reason), + G_DBUS_CALL_FLAGS_NONE, + -1, /* timeout */ + NULL, /* GCancellable */ + &error); + if (! res) { + g_warning ("Failed to call EndSessionResponse: %s", error->message); + g_error_free (error); + return FALSE; + } + + g_variant_unref (res); + return TRUE; +} + +static void +query_end_session_cb (void) +{ + end_session_response (TRUE, ""); +} + +static void +end_session_cb (void) +{ + end_session_response (TRUE, ""); + g_main_loop_quit (loop); +} + +static void +signal_cb (GDBusProxy *proxy, gchar *sender_name, gchar *signal_name, + GVariant *parameters, gpointer user_data) +{ + if (strcmp (signal_name, "Stop") == 0) { + stop_cb (); + } else if (strcmp (signal_name, "QueryEndSession") == 0) { + query_end_session_cb (); + } else if (strcmp (signal_name, "EndSession") == 0) { + end_session_cb (); + } +} + +static gboolean +register_client_to_gnome_session (void) +{ + GError *error = NULL; + GVariant *res; + const char *startup_id; + const char *app_id; + char *client_id; + + startup_id = g_getenv ("DESKTOP_AUTOSTART_ID"); + app_id = "polkit-gnome-authentication-agent-1.desktop"; + + sm_proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION, + G_DBUS_PROXY_FLAGS_NONE, + NULL, /* GDBusInterfaceInfo */ + SM_DBUS_NAME, + SM_DBUS_PATH, + SM_DBUS_INTERFACE, + NULL, /* GCancellable */ + &error); + if (sm_proxy == NULL) { + g_message("Failed to get session manager: %s", error->message); + g_error_free (error); + return FALSE; + } + + res = g_dbus_proxy_call_sync (sm_proxy, + "RegisterClient", + g_variant_new ("(ss)", + app_id, + startup_id), + G_DBUS_CALL_FLAGS_NONE, + -1, /* timeout */ + NULL, /* GCancellable */ + &error); + if (! res) { + g_warning ("Failed to register client: %s", error->message); + g_error_free (error); + return FALSE; + } + + if (! g_variant_is_of_type (res, G_VARIANT_TYPE ("(o)"))) { + g_warning ("RegisterClient returned unexpected type %s", + g_variant_get_type_string (res)); + return FALSE; + } + + g_variant_get (res, "(&o)", &client_id); + + // implement the signals to fix "policykit agent not responding" + // error (LP: #623819) + client_proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION, + G_DBUS_PROXY_FLAGS_NONE, + NULL, /* GDBusInterfaceInfo */ + SM_DBUS_NAME, + client_id, + SM_CLIENT_DBUS_INTERFACE, + NULL, /* GCancellable */ + &error); + g_variant_unref (res); + if (client_proxy == NULL) { + g_message("Failed to get client proxy: %s", error->message); + g_error_free (error); + return FALSE; + } + + g_signal_connect (client_proxy, "g-signal", G_CALLBACK (signal_cb), NULL); + + return TRUE; +} + int main (int argc, char **argv) { gint ret; - GMainLoop *loop; PolkitAgentListener *listener; GError *error; @@ -101,6 +240,8 @@ */ session_bus_connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL); + register_client_to_gnome_session(); + g_main_loop_run (loop); ret = 0; debian/patches/02-select-default-user.patch0000664000000000000000000000463211707275773015761 0ustar # Description: Select the current user to authenticate with by default # Ubuntu: https://launchpad.net/bugs/435227 # Upstream: http://bugzilla.gnome.org/show_bug.cgi?id=596188 Index: policykit-1-gnome/src/polkitgnomeauthenticationdialog.c =================================================================== --- policykit-1-gnome.orig/src/polkitgnomeauthenticationdialog.c 2011-03-04 00:06:46.599981036 +0100 +++ policykit-1-gnome/src/polkitgnomeauthenticationdialog.c 2011-03-04 00:07:11.211981036 +0100 @@ -138,7 +138,7 @@ static void create_user_combobox (PolkitGnomeAuthenticationDialog *dialog) { - int n; + int n, i, selected_index = 0; GtkComboBox *combo; GtkTreeIter iter; GtkCellRenderer *renderer; @@ -162,7 +162,7 @@ /* For each user */ - for (n = 0; dialog->priv->users[n] != NULL; n++) + for (i = 0, n = 0; dialog->priv->users[n] != NULL; n++) { gchar *gecos; gchar *real_name; @@ -224,6 +224,14 @@ USERNAME_COL, dialog->priv->users[n], -1); + i++; + if (passwd->pw_uid == getuid ()) + { + selected_index = i; + g_free (dialog->priv->selected_user); + dialog->priv->selected_user = g_strdup (dialog->priv->users[n]); + } + g_free (real_name); g_object_unref (pixbuf); } @@ -252,8 +260,8 @@ user_combobox_set_sensitive, NULL, NULL); - /* Initially select the "Select user..." ... */ - gtk_combo_box_set_active (GTK_COMBO_BOX (combo), 0); + /* Select the default user */ + gtk_combo_box_set_active (GTK_COMBO_BOX (combo), selected_index); /* Listen when a new user is selected */ g_signal_connect (GTK_WIDGET (combo), @@ -719,16 +727,13 @@ gtk_widget_set_tooltip_markup (label, s); g_free (s); - if (have_user_combobox) + /* Disable password entry and authenticate until have a user selected */ + if (have_user_combobox && gtk_combo_box_get_active (GTK_COMBO_BOX (dialog->priv->user_combobox)) == 0) { - /* ... and make the password entry and "Authenticate" button insensitive */ gtk_widget_set_sensitive (dialog->priv->prompt_label, FALSE); gtk_widget_set_sensitive (dialog->priv->password_entry, FALSE); gtk_widget_set_sensitive (dialog->priv->auth_button, FALSE); } - else - { - } gtk_widget_realize (GTK_WIDGET (dialog)); debian/compat0000664000000000000000000000000211707275773010406 0ustar 8 debian/gbp.conf0000664000000000000000000000006511707275773010630 0ustar [DEFAULT] pristine-tar = True debian-branch = master debian/policykit-1-gnome.install0000664000000000000000000000010611707275773014045 0ustar debian/polkit-gnome-authentication-agent-1.desktop etc/xdg/autostart/ debian/policykit-1-gnome.docs0000664000000000000000000000003111707275773013324 0ustar AUTHORS NEWS README TODO