Package Details: desktop-privileges 0.5-2

Git Clone URL: https://aur.archlinux.org/desktop-privileges.git (read-only)
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: https://aur.archlinux.org/packages/desktop-privileges/
Licenses: GPL
Conflicts: polkit-automount-upower-rules
Replaces: polkit-automount-upower-rules
Submitter: uwinkelvos
Maintainer: nous
Last Packager: nous
Votes: 59
Popularity: 0.324489
First Submitted: 2010-11-05 18:50
Last Updated: 2016-09-05 06:49

Required by (0)

Sources (4)

  • 10-cpufreqselector.rules
  • 10-udisks.rules
  • 10-udisks2.rules
  • 10-upower.rules

Latest Comments

Cromer commented on 2016-09-03 17:09

'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

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

Cromer commented on 2016-06-05 03:15

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

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

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

I will disown this package from now onwards.

If someone wants to adopt it, feel free to do it :)

Regards,
3V0LU710N

3V0LU710N commented on 2015-04-10 10:41

I will disown this package from now onwards.

If someone wants to adapt it, feel free to do it :)

Regards,
3V0LU710N

Alad commented on 2015-02-01 13:18

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

3V0LU710N commented on 2012-11-04 15:46

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

Cheers

vnoel commented on 2012-11-04 15:39

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

3V0LU710N commented on 2012-11-04 14:43

@vnoel: With the "new version", you're meaning the one I've put in dropbox, right? (just to confirm)
If so, I'll update it to AUR...

Cheers

vnoel commented on 2012-11-04 14:13

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

@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: http://dl.dropbox.com/u/30850666/desktop-privileges-0.4-3.src.tar.gz

Please give me a feedback... Cheers!

vnoel commented on 2012-11-04 13:31

@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

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

@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

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: https://wiki.archlinux.org/index.php/SystemD#Supplementary_information
Do we thus need to remove the udisk rules and pkla?

Or did I misunderstood it?

vnoel commented on 2012-10-23 14:57

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

3V0LU710N commented on 2012-10-23 13:08

@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

3V0LU710N commented on 2012-10-23 13:08

@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 an sample of a custom sudo line:

%power ALL=(ALL) NOPASSWD: /sbin/poweroff

vnoel commented on 2012-10-22 09:42

Hi, would it be possible to support cpupower too?

Thanks :)

3V0LU710N commented on 2012-10-07 22:01

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

3V0LU710N commented on 2012-10-05 16:31

@TheJJ: Thank you for the warning, I'll fix the package after coming back from my holidays next monday... =)

Cheers

TheJJ commented on 2012-10-05 08:40

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

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

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

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

Cheers

3V0LU710N commented on 2012-05-27 21:53

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 (https://aur.archlinux.org/packages.php?ID=59456)... :)

anonymous_user commented on 2012-05-27 17:52

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

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!

3V0LU710N commented on 2012-05-24 21:07

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 had 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

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.

anonymous_user commented on 2012-05-24 15:07

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

3V0LU710N commented on 2012-05-24 13:30

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: https://aur.archlinux.org/packages.php?ID=59456. (As such, I'd orphan my udisks2-mount package)...

Have some nice holidays...

Cheers

uwinkelvos commented on 2011-05-24 05:13

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

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

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

Berseker commented on 2011-02-13 10:48

great work, please vote this bug I've just posted on AUR.
https://bugs.archlinux.org/task/22875

Solutions like this one are not supposed to be "optional" like the AUR is, they should be merged upstream into the distribution.