Bug 261923 - Font installer doesn't remember password, asks again for each font operation
Summary: Font installer doesn't remember password, asks again for each font operation
Status: RESOLVED UPSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_fontinst (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Craig Drummond
URL:
Keywords:
: 256168 262402 277458 285503 298754 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-01-03 03:11 UTC by markuss
Modified: 2012-04-24 16:09 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description markuss 2011-01-03 03:11:15 UTC
Version:           unspecified (using KDE 4.5.90) 
OS:                Linux

When installing or removing system fonts, the installer always asks for the password, despite the activated checkbox to remember the authorization.

Reproducible: Always
Comment 1 Christoph Feck 2011-01-03 16:03:47 UTC
*** Bug 256168 has been marked as a duplicate of this bug. ***
Comment 2 Christoph Feck 2011-01-07 15:25:15 UTC
*** Bug 262402 has been marked as a duplicate of this bug. ***
Comment 3 Craig Drummond 2011-02-04 21:19:25 UTC
Which distribution is this with? I've seen this with openSUSE 11.3. However, with Kubuntu 10.10 I only get prompted for the password once - which is how it should be. So, this seems more like a system set-up issue.
Comment 4 markuss 2011-02-05 03:49:36 UTC
(In reply to comment #3)
> Which distribution is this with? I've seen this with openSUSE 11.3. However,
> with Kubuntu 10.10 I only get prompted for the password once - which is how it
> should be. So, this seems more like a system set-up issue.

Kubuntu uses the non-standard "kdesudo" program while our solution is called kde-su. I guess that could explain the different behaviour.
Comment 5 Craig Drummond 2011-02-10 23:09:51 UTC
But this does not affect the font-installer. This uses KAuth, which uses Polkit. kdesudo/kdesu are *not* used by the font installer.

So, this /appears/ to be an issue with openSUSE's policykit setup. Or with how the font installer is using it - but I just use the KAuth classes, so I'm not sure what else it can do. I've taked with the Kauth maintainer, and the font installer's policy kit files appear ok.
Comment 6 Craig Drummond 2011-04-15 16:33:54 UTC
Editing /var/lib/polkit-1/localauthority/10-vendor.d/org.kde.fontinst.manage.pkla, and changing this from:

[org.kde.fontinst.manage]
Identity=unix-user:*
Action=org.kde.fontinst.manage
ResultAny=auth_admin
ResultInactive=auth_admin
ResultActive=auth_admin

------
To:

[org.kde.fontinst.manage]
Identity=unix-user:*
Action=org.kde.fontinst.manage
ResultAny=auth_admin
ResultInactive=auth_admin
ResultActive=auth_admin_keep


Fixes the issue on openSUSE 11.4 for me. I've no idea where this org.kde.fontinst.manage.pkla comes from, or why ResultActive was not set to auth_admin_keep - which is what it should (and needs to) be.

Can you please check this file on your system?
Comment 7 Craig Drummond 2011-06-25 11:01:36 UTC
As stated above, this is a system issue. Editing the above file fixes the issue. The font installer codebase is doing all it can via KAuth.
Comment 8 Christoph Feck 2011-07-10 11:49:15 UTC
*** Bug 277458 has been marked as a duplicate of this bug. ***
Comment 9 Axel Braun 2011-07-10 12:24:52 UTC
I filed https://bugzilla.novell.com/show_bug.cgi?id=704805 for this
Comment 10 Craig Drummond 2011-11-01 19:44:30 UTC
*** Bug 285503 has been marked as a duplicate of this bug. ***
Comment 11 Christoph Feck 2012-04-24 16:09:22 UTC
*** Bug 298754 has been marked as a duplicate of this bug. ***