Package Details: desktop-privileges 0.5-3

Git Clone URL: (read-only, click to copy)
Package Base: desktop-privileges
Description: A collection of polkit rules to manage automounting of removable media, suspend and hibernate actions and CPU frequency settings.
Upstream URL:
Licenses: GPL
Conflicts: polkit-automount-upower-rules
Replaces: polkit-automount-upower-rules
Submitter: uwinkelvos
Maintainer: flying-sheep
Last Packager: flying-sheep
Votes: 63
Popularity: 0.000899
First Submitted: 2010-11-05 18:50 (UTC)
Last Updated: 2017-09-22 15:03 (UTC)

Latest Comments

marcthe12 commented on 2018-06-29 23:43 (UTC) (edited on 2018-06-29 23:44 (UTC) by marcthe12)

Can pm-utils be made optional. It conflicts with tlp

nous commented on 2017-09-22 15:39 (UTC)

I've moved out of Arch, thanks for adopting.

flying-sheep commented on 2017-07-26 18:00 (UTC)

hi, can you change the dependencies to just polkit and udisks2, and make pm-utils optional? your variant packages all have “provides=(basename)”, and with this change, people with regular polkit and udisks2 can also use this package.

Megver83 commented on 2017-03-23 15:38 (UTC)

@nous yes, sad news to know that consolekit is deprecated. I'm maintaining some consolekit and elogind packages, I'm a packager from an Arch based distro, and it has OpenRC packages, so then all consolekit packagers were removed from there and now we are uploading them again, because the transition to elogind it's incomplete for now, I hope it worth

nous commented on 2017-03-22 22:12 (UTC)

Thanks for the heads-up, however this is sad news. I'm still very short on time but I'll take a look into it soon.

Megver83 commented on 2017-03-20 15:10 (UTC) (edited on 2017-03-20 22:38 (UTC) by Megver83)

pm-utils is no longer in Arch Linux so I created it again. Also, Manjaro removed its consolekit packages now they are here I say this because maybe in the future (better said now) polkit-consolekit will be replaced with polkit-elogind, so you could try to see how dektop-privileges work with it, maybe you could create a new package desktop-privileges-elogind or upgrade dektop-privileges.

Cromer commented on 2016-09-03 17:09 (UTC)

'upower-pm-utils' is no longer in the AUR. The dependency should be changed to the following: 'upower' 'pm-utils'

nous commented on 2016-06-05 21:12 (UTC)

This is just a rules collection, there's no compiling involved - only packaging.

Cromer commented on 2016-06-05 03:15 (UTC) (edited on 2016-06-05 03:24 (UTC) by Cromer)

There is a required make dependency that is not met for this package. libgudev, it won't compile unless this is installed.

nous commented on 2015-04-19 09:53 (UTC)

To answer my own question, the old actions are covered by udisks2-nosystemd and mate-power-manager-upower, listed hereafter as depends and optdepends respectively.

nous commented on 2015-04-11 16:10 (UTC)

Just found this, and it seems it can be merged with polkit-automount-upower-rules (or vice-versa). Is there any automagickal way to convert the old actions format into the new one?

3V0LU710N commented on 2015-04-10 10:41 (UTC)

I will disown this package from now onwards. If someone wants to adopt it, feel free to do it :) Regards, 3V0LU710N

Alad commented on 2015-02-01 13:18 (UTC)

This needs to be updated, the rules even use the old ini-style polkit format.

3V0LU710N commented on 2012-11-04 15:46 (UTC)

Version 0.4-3: small update (should/might fix problems with cpufreqselector). Cheers

vnoel commented on 2012-11-04 15:39 (UTC)

Yes, this one, but I don't think it is your change that made a difference, it was only because I changed the wrong permissions on /usr/share/polkit-1/rules.d! Thank you

vnoel commented on 2012-11-04 14:13 (UTC)

Well, I think it was just a problem with the permissions of /use/share/polkit-1/rules.d :) It works well with this new version after I fixed the permissions. Thanks!

3V0LU710N commented on 2012-11-04 14:09 (UTC)

@vnoel: I'm not sure about that problem about cpufreqselector... ATM I'm not using GNOME (I'm using Openbox). If you try to use it with sudo "sudo cpufreqselector <rule>", does it work for you? Else, if you want to give a try, I've done a small change in the cpufreqselector polkit rule. You can grab the (testing) tarball here: Please give me a feedback... Cheers!

vnoel commented on 2012-11-04 13:31 (UTC)

@3V0LU710N: Alright, and what about the cpufreqselector rules? I guess they are not taken care of by logind... is it? But anyway, I kept the package installed and I kept my user in the power group, but cpufreq-selector asks for a password, so I guess there is something wrong. In my logs I have these errors: Error opening rules directory: Error opening directory '/usr/share/polkit-1/rules.d': Permission denied (g-file-error-quark, 2)

3V0LU710N commented on 2012-11-03 21:44 (UTC)

p.s.: I almost forgot: You don't need to remove these rules, (if you want to), but now it seems most of the mount functions are properly done by loginctl.

3V0LU710N commented on 2012-11-03 21:39 (UTC)

@vnoel: Well, after removing this package (as a test), it seems logind currently manages _MOST_ of the mount rules put in this package. The only exception that didn't work seems to be mounting local drives, which still asked me for a password. (but for that you can always put your local mounts on fstab, so they can be mounted at boot time). Btw, this package might still be useful for users that don't want to use systemd (which is not my case), aren't using loginctl / display managers (slim, kdm, gdm, lxdm, etc.) or people that didn't/don't want to upgrade polkit to 0.107. As such, I'll maintain this package in a "dormant" state unless someone asks me for new polkit rules... or someone is interested in taking (it) over. Cheers

vnoel commented on 2012-11-03 12:30 (UTC)

Hi again, another question: Now that archlinux uses logind by default, it seems that we get some of the functionality of this package for free, as explained there: Do we thus need to remove the udisk rules and pkla? Or did I misunderstood it?

vnoel commented on 2012-10-23 14:57 (UTC)

Ok, I see the idea, thank you for your answer :)

3V0LU710N commented on 2012-10-23 13:08 (UTC)

@vnoel: For that I'm afraid I can't create a polkit rule, as cpupower doesn't depend on polkit... I'd recommend you to create a custom sudo rule, so, when you type "sudo cpupower <something>", you don't have to type a password... Cheers p.s.: Here's a sample of a custom sudo line: %power ALL=(ALL) NOPASSWD: /sbin/poweroff

vnoel commented on 2012-10-22 09:42 (UTC)

Hi, would it be possible to support cpupower too? Thanks :)

3V0LU710N commented on 2012-10-07 22:01 (UTC)

Version 0.4-2: Includes the fixes mentioned by TheJJ (thanks for the tip). If you want some new rules to be added (eg. for upower), please let me know... Cheers

TheJJ commented on 2012-10-05 08:40 (UTC)

directory permissions have to be like this, otherwise this package breaks polkit: /usr/share/polkit-1/ 755 /usr/share/polkit-1/rules.d/ 700

3V0LU710N commented on 2012-09-23 13:49 (UTC)

Version 0.4-1: New rules added due to upcoming polkit 0.107 changes (great, now polkit rules are made in ECMAScript (aka JavaScript) -_-). Please test the new rules and give me some feedback about them. Cheers

3V0LU710N commented on 2012-08-01 00:23 (UTC)

Version 0.3-3: new pkgrel version. If you're already using version 0.3-2, you don't need to update. Changes in the package description and added myself as the current AUR package maintainer... Cheers

3V0LU710N commented on 2012-06-30 18:44 (UTC)

I'll adopt this package temporarly until uwinkelvos returns... Cheers

3V0LU710N commented on 2012-05-27 21:53 (UTC)

Well, I've just tried your upgraded package and so far so good. Ejecting removable / optical media is working as expected using both udisks1 and udisks2. Also, mounting / unmounting of USB disks / internal drives is working without asking for a password... ATA SMART rules seem to be correct... :) At the moment, I don't have any more suggestions but if I find something useful that can be added, I'll tell you... Cheers p.s.: I'll also put your package as a depend for my "udisks2-mount" one ( :)

anonymous_user commented on 2012-05-27 17:52 (UTC)

Ok I fixed the typo and added the additional actions for udisks2. Also I added similar actions for udisks. Please let me if know if they work or not or even if you think they're unnecessary.

3V0LU710N commented on 2012-05-24 21:08 (UTC)

Greetings! I've just tested your polkit rules for udisks2. Currently, they've been working properly for mounting/umounting usb disks... but I've seen what can possibly be a (small) typo in the rules: "org.freedesktop.udisks2.ata-smart*" -> Shouldn't it be "org.freedesktop.udisks2.ata-smart-*" instead? Additionaly (as a suggestion), you could also add to this package some features like, for instance, some org.freedesktop.eject-* rules and/or rules for encrypted drives (e.g. LUKS). Here are my previous custom rules I was using for udisks2: ;-) [Storage Permissions] Identity=unix-group:storage Action=org.freedesktop.udisks2.filesystem-mount;org.freedesktop.udisks2.filesystem-mount-other-seat;org.freedesktop.udisks2.encrypted-unlock;org.freedesktop.udisks2.encrypted-unlock-other-seat;org.freedesktop.udisks2.eject-media;org.freedesktop.udisks2.eject-media-other-seat ResultAny=yes ResultActive=yes ResultInactive=no Hope this helps you... Cheers and thanks for the package!

anonymous_user commented on 2012-05-24 15:10 (UTC)

Ok I've added a rule file for udisks2 and also changed the directory from /etc/polkit-1/... to /var/lib/polkit-1/... Please test the new package and let me know how it works.

3V0LU710N commented on 2012-05-24 13:30 (UTC)

Hi uwinkelvos. I've just installed your desktop-privileges package. It's very interesting, works pretty well and allows us non-DE users (Openbox, etc.) to mount our removable drives / maange cpufreq without any problems. :) I'd like to propose you to add in your next release of this package some mount rules for udisks2, like the ones I've on my AUR udisks2-mount package: (As such, I'd orphan my udisks2-mount package)... Have some nice holidays... Cheers

uwinkelvos commented on 2011-05-24 05:13 (UTC)

Hi! i am on a three month vacation right now, so i cant update the package right now. Feel free to update it. I will take care of it, when i get back in july. Thx, Ulf

anonymous_user commented on 2011-05-24 04:33 (UTC)

I tried to use this with devmon but it didn't work. I had to edit udisks-internal.pkla and add "ResultInactive=no" and "ResultActive=yes". It might be worth includes those two lines.

uwinkelvos commented on 2011-03-03 00:45 (UTC)

@Berseker: added cpufreqselector.pkla with power group access to this package. Thx for the suggestion! :)

commented on 2011-02-13 10:48 (UTC)

great work, please vote this bug I've just posted on AUR. Solutions like this one are not supposed to be "optional" like the AUR is, they should be merged upstream into the distribution.