View previous topic :: View next topic |
Author |
Message |
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Thu Oct 04, 2012 10:24 am Post subject: |
|
|
If the pkla files in /etc actually ever worked, then it makes sense. As of today the only way to get hassle free mounting with polkit is to edit the *.policy files in /usr. _________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Thu Oct 04, 2012 10:39 am Post subject: |
|
|
ppurka wrote: | If the pkla files in /etc actually ever worked, then it makes sense. As of today the only way to get hassle free mounting with polkit is to edit the *.policy files in /usr. |
Then you have screwed up configuration. Most often it happens exactly because you have edited the /usr files by hand, modifying their mtime, causing Portage to leave dead files around on upgrades.
As in, you never had needed to edit anything in /usr as /etc will always take predecense as described in the manpage.
Futhermore you don't even need .pkla files for mounting removable devices etc. as UDisks1 or 2 will be satisfied by the 'active = TRUE' status returned by ConsoleKit.
.pkla files were only required if you wanted to mount internal disks, like another HDD with NTFS filesystem on it, as in, non-removable drives.
If I were you, I'd start by wiping anything dbus, or *kit related from /usr and /etc and re-emerging them with the --noconfmem parameter. As in, starting from scratch.
Thanks to the upstream (and Gentoo) out-of-box configuration we have on these, the default configs are usually all you need... if using the desktop profile, if not, then you are on your own for figuring out the required USE flags. |
|
Back to top |
|
|
Dominique_71 Veteran
Joined: 17 Aug 2005 Posts: 1877 Location: Switzerland (Romandie)
|
Posted: Thu Oct 04, 2012 12:02 pm Post subject: |
|
|
ssuominen wrote: | Thanks to the upstream (and Gentoo) out-of-box configuration we have on these, the default configs are usually all you need... if using the desktop profile, if not, then you are on your own for figuring out the required USE flags. |
I do understand the need of big companies for polkit. What I don't understand is why, when it is nothing into the kernel that depend on it, every desktop user is forced to have it. I don't use gentoo because it provide gnome or kde by default, but because it is fast, stable, easier to manage after the first installation than any other distribution, that because it is no added glue between the real config files and the user, and last but not least, gentoo provide a great level of choices.
Also, it is 3 desktop profiles, desktop, desktop-gnome and desktop-kde. Gnome depend on polkit, but even with kde, polkit is not mandatory. So, why was policykit, as well than consolekit, added in desktop, when it is 2 other profiles, dektop-gnome and desktop-kde where they could have been added? _________________ "Confirm You are a robot." - the singularity |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
Posted: Thu Oct 04, 2012 12:11 pm Post subject: |
|
|
Dominique_71 wrote: | Also, it is 3 desktop profiles, desktop, desktop-gnome and desktop-kde. Gnome depend on polkit, but even with kde, polkit is not mandatory. So, why was policykit, as well than consolekit, added in desktop, when it is 2 other profiles, dektop-gnome and desktop-kde where they could have been added? |
Because the plain 'desktop' profile is designed for Xfce, LXDE, ROX and so forth and we want all the authorization and hardware related features enabled by default too. |
|
Back to top |
|
|
Dominique_71 Veteran
Joined: 17 Aug 2005 Posts: 1877 Location: Switzerland (Romandie)
|
Posted: Thu Oct 04, 2012 1:06 pm Post subject: |
|
|
ssuominen wrote: | Because the plain 'desktop' profile is designed for Xfce, LXDE, ROX and so forth and we want all the authorization and hardware related features enabled by default too. |
I understand that. But facts are 1) Those authorization and hardware related features was working before polkit for most of us, and 2) All the wm/de they was not polkit dependent was even not starting any more, with something so simple than startx. That was a severe regression!
To solve 2), the only solution was to modify .xinitrc in order to run *kit at the same time than the non-*kit wm. That imply one single fact: it is a design fault, and I am not talking about the implementation of JS in polkit, but about the fact than, with the default desktop profile, My wm don't need *kit become It must have them. Gratefully, I find my way out of this mess and succeeded to remove polkit.
Btw: rox don't need polkit.
So, beside to include gcc into udev, what will be next? systemd? _________________ "Confirm You are a robot." - the singularity |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
Posted: Thu Oct 04, 2012 4:42 pm Post subject: |
|
|
ssuominen wrote: | [...] disabling polkit will severaly cripple xfce4-power-manager. |
Thanks for the info. That is distressing, though not unexpected.
I need this functionality for work, but the idea of having to install spidermonkey to get it is vile. _________________ Personal overlay | Simple backup scheme |
|
Back to top |
|
|
Dominique_71 Veteran
Joined: 17 Aug 2005 Posts: 1877 Location: Switzerland (Romandie)
|
Posted: Fri Oct 05, 2012 11:27 am Post subject: |
|
|
mv wrote: | Dominique_71 wrote: | Or, is *kit really needed in order to mount stuff? Answer no for most of us. |
s/most/all/
See e.g. sys-apps/uam. |
It is doing a great job with pmount. Even better with pmount-gui, that is not yet in portage. _________________ "Confirm You are a robot." - the singularity |
|
Back to top |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Fri Oct 05, 2012 12:29 pm Post subject: |
|
|
Dominique_71 wrote: | mv wrote: | Dominique_71 wrote: | Or, is *kit really needed in order to mount stuff? Answer no for most of us. |
s/most/all/
See e.g. sys-apps/uam. |
Even better with pmount-gui, that is not yet in portage. | That's perfect. If it works out well, I will ditch *kit asap. _________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
|
Dominique_71 Veteran
Joined: 17 Aug 2005 Posts: 1877 Location: Switzerland (Romandie)
|
Posted: Fri Oct 05, 2012 12:57 pm Post subject: |
|
|
ppurka wrote: | That's perfect. If it works out well, I will ditch *kit asap. |
I installed uam, pmount and pmount-gui. uam mount all the non fstab stuff into /media automatically. You can umount them with "pmount-gui -u". That will show you a simple gui with the mount points that can be umounted. If like me you have usb stuffs in fstab with mount points not in /media, uam will mount them at the right location, but pmount will not be able to unmount them.
EDIT: In fact, that is not pmount that doesn't work with my firewire disk, but pmount-gui. It look like pmount-gui work only with usb stuffs. _________________ "Confirm You are a robot." - the singularity |
|
Back to top |
|
|
Dominique_71 Veteran
Joined: 17 Aug 2005 Posts: 1877 Location: Switzerland (Romandie)
|
Posted: Fri Oct 05, 2012 6:09 pm Post subject: |
|
|
I done a bug report for pmount-gui with 2 ebuilds and a small tarball. _________________ "Confirm You are a robot." - the singularity |
|
Back to top |
|
|
Dominique_71 Veteran
Joined: 17 Aug 2005 Posts: 1877 Location: Switzerland (Romandie)
|
Posted: Sat Oct 06, 2012 10:33 am Post subject: |
|
|
Dominique_71 wrote: | EDIT: In fact, that is not pmount that doesn't work with my firewire disk, but pmount-gui. It look like pmount-gui work only with usb stuffs. |
I signalled this to the author, and he have just committed a fix. Now, both usb and firewire devices are working. _________________ "Confirm You are a robot." - the singularity |
|
Back to top |
|
|
Hypnos Advocate
Joined: 18 Jul 2002 Posts: 2889 Location: Omnipresent
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|