[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2011-02-03 Thread Bug Watch Updater
** Changed in: devicekit-power
   Importance: Unknown = Medium

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.
https://bugs.launchpad.net/bugs/432598

Title:
  Do not show suspend/hiberate related UI if suspend is disabled in
  polkit

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2011-01-25 Thread Bug Watch Updater
** Changed in: devicekit-power
   Importance: Medium = Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in ubuntu.
https://bugs.launchpad.net/bugs/432598

Title:
  Do not show suspend/hiberate related UI if suspend is disabled in
  polkit

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-04-02 Thread Dang Kang
** Changed in: upower (Ubuntu Karmic)
   Status: Won't Fix = Confirmed

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-04-02 Thread Omer Akram
Please dont change the status of bug if you dont know what you are doing

** Changed in: upower (Ubuntu Karmic)
   Status: Confirmed = Won't Fix

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-03-25 Thread Jerone Young
** Changed in: oem-priority
   Status: Triaged = Fix Released

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-03-19 Thread Launchpad Bug Tracker
This bug was fixed in the package indicator-session - 0.2.6-0ubuntu1

---
indicator-session (0.2.6-0ubuntu1) lucid; urgency=low

  * Upstream release 0.2.6
∘ Updating sessions to make guest account marked when being
  used (LP: #436030)
∘ String Switch From is miscapitalized (LP: #540265)
∘ Follow user switching lockdown key (LP: #504360)
∘ Use user avatar images in session menu (LP: #436028)
∘ Don't show suspend/hibernate if disabled in Policy Kit (LP: #432598)
∘ Lock screen when switching users (LP: #536801)
∘ Fix callback prototype (LP: #536990)
∘ Revert back to Shut Down instead of Switch Off (LP: #540056)
∘ Fix leaked GConf notifications
∘ Add GConf key for showing the Log Out item
∘ Adding the ability to specify a desktop file to have at the end
  of the menu.
∘ Setting up restart required notification by changing panel icon
  and icon in menus.
∘ Use the libindicator image helpers
∘ Set proper translation domain for loadable indicator
∘ Translation update
  * debian/control: Require libindicator 0.3.5
 -- Ted Gould t...@ubuntu.com   Thu, 18 Mar 2010 14:22:41 -0500

** Changed in: indicator-session (Ubuntu Lucid)
   Status: Triaged = Fix Released

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-03-19 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/indicator-session

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-03-18 Thread Launchpad Bug Tracker
** Branch linked: lp:~indicator-applet-developers/indicator-
session/ubuntu

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-03-18 Thread Ted Gould
** Changed in: indicator-session
   Status: Fix Committed = Fix Released

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-03-16 Thread Ted Gould
** Changed in: indicator-session
   Status: Triaged = Fix Committed

** Changed in: indicator-session
Milestone: ubuntu-10.04-beta-1 = 0.2.6

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-03-16 Thread Launchpad Bug Tracker
** Branch linked: lp:indicator-session

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-03-10 Thread David Barth
Linking to the upstream project to get it under the end of cycle radar.
The distinction between HW support  PK policy should help find a
solution.

** Also affects: indicator-session
   Importance: Undecided
   Status: New

** Changed in: indicator-session
   Importance: Undecided = Medium

** Changed in: indicator-session
   Status: New = Triaged

** Changed in: indicator-session
Milestone: None = ubuntu-10.04-beta-1

** Changed in: indicator-session
 Assignee: (unassigned) = Ted Gould (ted)

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-03-08 Thread Ted Gould
I don't understand why we should be removing the items on the menu if
there is administrator privlidges required to do the action.  It would
seem that they should switch to a Sleep... but you should still be
allowed to ask the machine to sleep and give your password.  As I
understand it, this is what the Allowed function check.

But, there are two other properties that are in upower that allow for
setting whether the machine CanSuspend or CanHibernate.  These are
derived by catting /sys/power/state and looking to see if it contains
mem and/or disk.  I believe that these are derivated from the
drivers in the system saying what they in turn support.

CanSuspend and CanHibernate are checked in indicator-session.

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-03-08 Thread Martin Pitt
Ted Gould [2010-03-08 19:27 -]:
 I don't understand why we should be removing the items on the menu if
 there is administrator privlidges required to do the action.  It would
 seem that they should switch to a Sleep... but you should still be
 allowed to ask the machine to sleep and give your password.  As I
 understand it, this is what the Allowed function check.

No, it checks whether you either already have or can get the privilege
(via entering your password) to suspend. If it says no, it means
no, you can't get it. Administrators who want to  disable
suspend/hibernate would set this in the .pkla file.

 But, there are two other properties that are in upower that allow for
 setting whether the machine CanSuspend or CanHibernate.  These are
 derived by catting /sys/power/state and looking to see if it contains
 mem and/or disk.  I believe that these are derivated from the
 drivers in the system saying what they in turn support.

Right, but those mean the kernel says it's able to, which is
different from PolicyKit says the user is allowed to. So we need to
check both.

Martin

-- 
Martin Pitt| http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-03-01 Thread Matthew L. Dailey
I've been pulling my hair out on this one today on a lucid test system,
wondering why I couldn't get the parts that should work working. Finally
realized that it was a simple mistake, but thought I'd point it out here
in the hopes that it will save someone else some time.

In *lucid*, the policykit actions have changed. They used to be
org.freedesktop.devicekit.power.* but are now org.freedesktop.upower.*

So, Martin's example in #28 goes like this on lucid:
$ sudo cat /etc/polkit-1/localauthority/50-local.d/disable-suspend.pkla
[Disable suspend]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend;org.freedesktop.upower.hibernate
ResultActive=no
ResultAny=no

$ pkcheck --action-id org.freedesktop.upower.suspend --process $$ 
Not authorized.

Once this change is made, everything's happy, except for the Indicator
applet, which is still an open issue.

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-03-01 Thread Martin Pitt
Matthew L. Dailey [2010-03-01 22:53 -]:
 In *lucid*, the policykit actions have changed. They used to be
 org.freedesktop.devicekit.power.* but are now org.freedesktop.upower.*

Confirmed.

 Once this change is made, everything's happy, except for the Indicator
 applet, which is still an open issue.

Correct. My libupower-glib branch (which would fix this) was rejected,
because it does not meet the coding guidelines for indicator (so
ignore this branch). The indicator applet needs to ask upower for
HibernateAllowed() or SuspendAllowed().

Martin
-- 
Martin Pitt| http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-02-22 Thread Martin Pitt
My indicator-session branch was rejected

** Changed in: indicator-session (Ubuntu Lucid)
   Status: In Progress = Triaged

** Changed in: indicator-session (Ubuntu Lucid)
 Assignee: Martin Pitt (pitti) = (unassigned)

** Changed in: indicator-session (Ubuntu Lucid)
 Assignee: (unassigned) = Indicator Applet Developers 
(indicator-applet-developers)

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-02-21 Thread Alkis Georgopoulos
I tried to disable suspension of my laptop using the methods described
in comments #28 (Martin Pitt), #32 (Cédric Dufour) and #36 (Kjell L.),
but I was unable to. I rebooted after trying each method, but suspension
always worked from the indicator-session menu.

pkcheck --action-id org.freedesktop.devicekit.power.suspend --process $$
Not authorized.

What am I doing wrong? Or is indicator-session not ready yet?

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-02-21 Thread Launchpad Bug Tracker
** Branch linked: lp:debian/experimental/upower

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


Re: [Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-02-21 Thread Martin Pitt
Alkis Georgopoulos [2010-02-21  9:15 -]:
 I tried to disable suspension of my laptop using the methods described
 in comments #28 (Martin Pitt), #32 (Cédric Dufour) and #36 (Kjell L.),
 but I was unable to. I rebooted after trying each method, but suspension
 always worked from the indicator-session menu.

It shouldn't work; If you set up the .plka file correctly, it should
merely lock the screen, not suspend.

 What am I doing wrong? Or is indicator-session not ready yet?

It isn't, that's why the indicator-session task here is still open.

Martin
-- 
Martin Pitt| http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-02-19 Thread Kjell L.
Looks like I can disable hibernation and suspend in
/usr/share/polkit-1/actions/org.freedesktop.upower.policy now. Running
lucid

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-02-17 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/upower

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-02-16 Thread Martin Pitt
upower (0.9.0+git20100216.72bb2-0ubuntu1) lucid; urgency=low

  Same version as the -1 upload to Debian experimental, but needs to clear NEW
  still.

  [ Martin Pitt ]
  * New upstream release, and updating to current git head:
- Rename the project, library, and D-Bus interface to upower.
- Bug fixes.
- Translation updates.
- Set client library's can_{suspend,hibernate} properties to False if
  suspend/hibernate is prohibited through PolicyKit. (LP: #432598)
  * Drop 01-lid-status-fallback.patch, 02-dkpclient-singleton.patch: Applied
upstream.
  * debian/rules, debian/control: Add an epoch to the transitional
devicekit-power-doc package, so that the upgrade will actually work.
  * debian/rules: Explicitly enable gtk-doc building, upstream configure
disables that now.
  * Build libdevkit-power-gobject{1,-dev} packages, but mark them as obsolete.
These are still necessary, until upowerd is fully ported to the new
libupower-glib.

  [ Michael Biebl ]
  * debian/upower.install: Only install upower and upowerd, not the
transitional symlinks.
  * debian/control: Bump Standards-Version to 3.8.4. No further changes.

 -- Martin Pitt martin.p...@ubuntu.com   Tue, 16 Feb 2010 10:16:24
+0100

** Package changed: devicekit-power (Ubuntu Lucid) = upower (Ubuntu
Lucid)

** Changed in: upower (Ubuntu Lucid)
   Status: Fix Committed = Fix Released

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-02-16 Thread Martin Pitt
** Package changed: indicator-applet (Ubuntu Karmic) = indicator-
session (Ubuntu Karmic)

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-02-16 Thread Launchpad Bug Tracker
** Branch linked: lp:~pitti/indicator-session/libupower-glib

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-02-16 Thread Martin Pitt
I ported indicator-session from DeviceKit-power to libupower-glib, which
will also fix this bug. I'll send a merge proposal now.

** Changed in: indicator-session (Ubuntu Lucid)
   Status: Triaged = In Progress

** Changed in: indicator-session (Ubuntu Lucid)
 Assignee: (unassigned) = Martin Pitt (pitti)

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-02-14 Thread Cédric Dufour
On Lucid, it would seem the /etc/polkit-1/* folders are not used.

Puting a power.conf file:

[Disable suspend]
Identity=unix-user:*
Action=org.freedesktop.devicekit.power.suspend
ResultActive=no
ResultAny=no

[Disable hibernate]
Identity=unix-user:*
Action=org.freedesktop.devicekit.power.hibernate
ResultActive=no
ResultAny=no

[Disable shutdown]
Identity=unix-user:*
Action=org.freedesktop.consolekit.system.stop
ResultActive=no
ResultAny=no

In:
 - /etc/polkit-1/localauthority/50-local.d
 - /etc/polkit-1/localauthority.conf.d

Does NOT affect the applied policy (cf. pkcheck and Gnome shutdown
dialog)

Modifying the /usr/share/polkit-1/actions/* files DOES lead to the
expected results (cf. pkcheck and Gnome shutdown dialog)

Am I:
 - missing something (like reloading a daemon somewhere)
 - or is this a bug; a sysadmin would expect his custom settings to be in 
/etc/polkit-1 and be honored (and not be erased by some package update) ?

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-02-14 Thread Cédric Dufour
Scratch my previous comment.

The /etc/polkit-1/localauthority/*.d files ARE honored, provided the
files are named *.pkla

Sorry

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-02-11 Thread Bug Watch Updater
** Changed in: devicekit-power
   Status: Confirmed = Fix Released

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-02-08 Thread Martin Pitt
** Also affects: indicator-applet (Ubuntu)
   Importance: Undecided
   Status: New

** Also affects: gnome-session (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: gnome-session (Ubuntu Lucid)
   Status: New = Triaged

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-02-08 Thread Martin Pitt
Ah, gnome-power-manager and the other programs are reading the
can_suspend property, so we should just fix that centrally.

** Package changed: gnome-power-manager (Ubuntu Lucid) = devicekit-
power (Ubuntu Lucid)

** Changed in: gnome-session (Ubuntu Karmic)
   Status: New = Invalid

** Changed in: gnome-session (Ubuntu Lucid)
   Status: Triaged = Invalid

** Changed in: indicator-applet (Ubuntu Karmic)
   Status: New = Invalid

** Changed in: indicator-applet (Ubuntu Lucid)
   Status: New = Invalid

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-02-08 Thread Martin Pitt
** Also affects: gnome-power-manager (Ubuntu)
   Importance: Undecided
   Status: New

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-02-08 Thread Martin Pitt
Further analysis showed that it's not possible to add a policykit check
into the can_{suspend,hibernate} properties. This needs changing the
DK-P D-Bus API to replace the properties with method calls, check
PolicyKit in those method calls, wrapping the new D-Bus call into a new
libdevkit-power-gobjec and rewire the clients (gnome-session, indicator-
applet, gnome-power-prefs) to use the new method instead of the gobject
property.

This is therefore not SRUable, it's way too intrusive.

** Changed in: gnome-power-manager (Ubuntu Lucid)
   Status: New = Triaged

** Changed in: devicekit-power (Ubuntu Karmic)
   Status: Triaged = Won't Fix

** Changed in: devicekit-power (Ubuntu Karmic)
 Assignee: Martin Pitt (pitti) = (unassigned)

** Changed in: gnome-power-manager (Ubuntu Karmic)
   Status: New = Won't Fix

** Changed in: gnome-session (Ubuntu Karmic)
   Status: Invalid = Won't Fix

** Changed in: gnome-session (Ubuntu Lucid)
   Importance: Undecided = Low

** Changed in: gnome-session (Ubuntu Lucid)
   Status: Invalid = Triaged

** Changed in: indicator-applet (Ubuntu Lucid)
   Importance: Undecided = Low

** Changed in: indicator-applet (Ubuntu Lucid)
   Status: Invalid = Triaged

** Changed in: indicator-applet (Ubuntu Karmic)
   Status: Invalid = Won't Fix

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-02-08 Thread Martin Pitt
** Bug watch added: freedesktop.org Bugzilla #26473
   https://bugs.freedesktop.org/show_bug.cgi?id=26473

** Also affects: devicekit-power via
   https://bugs.freedesktop.org/show_bug.cgi?id=26473
   Importance: Unknown
   Status: Unknown

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-02-08 Thread Bug Watch Updater
** Changed in: devicekit-power
   Status: Unknown = Confirmed

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs


[Bug 432598] Re: Do not show suspend/hiberate related UI if suspend is disabled in polkit

2010-02-08 Thread Martin Pitt
Patches sent upstream for review (already discussed with Richard on IRC,
should be okay).

I managed to do this in a way which remains compatible with the previous
API, so we do not need to fix gnome-session and g-p-m after all.
indicator-applet seems to do something funky and not use DkpClient, so
this still needs fixing.

** Changed in: devicekit-power (Ubuntu Lucid)
   Status: In Progress = Fix Committed

** Changed in: gnome-session (Ubuntu Lucid)
   Status: Triaged = Invalid

** Changed in: gnome-session (Ubuntu Karmic)
   Status: Won't Fix = Invalid

** Changed in: gnome-power-manager (Ubuntu Lucid)
   Status: Triaged = Invalid

** Changed in: gnome-power-manager (Ubuntu Karmic)
   Status: Won't Fix = Invalid

-- 
Do not show suspend/hiberate related UI if suspend is disabled in polkit
https://bugs.launchpad.net/bugs/432598
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs