Bug 228765 - Importing fonts system wide asks for root access for every single font
Summary: Importing fonts system wide asks for root access for every single font
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_fontinst (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Craig Drummond
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-27 16:28 UTC by Pascal Bakhuis
Modified: 2010-04-20 21:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The font dialog (108.78 KB, image/png)
2010-03-01 15:07 UTC, Pascal Bakhuis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Bakhuis 2010-02-27 16:28:57 UTC
Version:            (using KDE 4.4.0)
OS:                Linux
Installed from:    openSUSE RPMs

I used 'Configure Desktop' > 'Font Installer' and in the dialog that pops up when the 'add' button is clicked I selected all fonts from my windows directory.  Then I chose the 'open' option and for every single font I was asked to enter the root password. In KDE 4.3 this was asked only once.
Comment 1 Dario Andres 2010-02-27 18:10:50 UTC
- If you run "kcmshell4 fontinst" on Konsole, do you get the same FontInstalling module ?
Regards
Comment 2 Pascal Bakhuis 2010-03-01 15:07:04 UTC
Created attachment 41236 [details]
The font dialog

Yes, in both cases I get window on the screenshot.
Comment 3 Craig Drummond 2010-04-11 13:45:50 UTC
I can confirm this under openSUSE 11.2 using the KDE4:Factory packages. I have contacted the KAuth maintainer to asses whether this is an issue with the font installer, openSUSE packages, or KAuth.

The openSUSE 11.2 packages seem to be using the polkit-1 KAuth backend, and when I originally wrote the KAuth port of the font installer my system (openSUSE 11.2) was setup to use the policykit backend. The policykit backend worked as expected - i.e. only a single authorisation prompt.
Comment 4 Craig Drummond 2010-04-20 21:30:52 UTC
SVN commit 1116983 by craig:

In policykit, the persistence was given implicitely for the running
application, whereas for polkit this has to be given explicitely.

Using 'Persistence=session' resolves this.

BUG: 228765


 M  +1 -0      fontinst.actions  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1116983
Comment 5 Craig Drummond 2010-04-20 21:42:57 UTC
To help until this appears in a KDE 4.4 patch release, edit /usr/share/polkit-1/actions/org.kde.fontinst.policy and change 'auth_admin' to 'auth_admin_keep'