Bug 300951 - Can't install fonts system-wide
Summary: Can't install fonts system-wide
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_fontinst (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR major
Target Milestone: ---
Assignee: Craig Drummond
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-31 17:14 UTC by Tristan Miller
Modified: 2016-09-16 04:14 UTC (History)
2 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 Tristan Miller 2012-05-31 17:14:02 UTC
I can't install a font system-wide.  Unlike previous reports of this problem (such as Bug 223107), I don't even get prompted for a root password.

Reproducible: Always

Steps to Reproduce:
1. Click "Add…". An "Add Fonts" file selector appears.
2. Specify the location of the font (say, /path/to/font.ttf) and click Open.  A "Where to Install" dialog appears.
3. Click "System"

Actual Results:  
4. An "Installing" dialog appears with a progress bar.  After a few seconds, the progress bar disappears, and is replaced by the following error message:

Error
Authentication failed.
file:///path/to/font.ttf

Expected Results:  
4. I should have been prompted for the root password, and then the font should have been installed.
Comment 1 Craig Drummond 2012-05-31 17:27:47 UTC
Which KDE version is this? What distribution and version?

I've just tried with Kubuntu 12.04 on KDE 4.8.2 - and the install works fine.

It sounds like something is wrong with your polkit set-up.
Comment 2 Tristan Miller 2012-05-31 17:40:13 UTC
KDE 4.6.0 on openSUSE 11.4.
Comment 3 Craig Drummond 2012-05-31 17:42:34 UTC
Can you perform other actions that use polkit/policykit? e.g. changing your kdm settings? (The 'Login Screen' module has an 'Apply' button with a key symbol - this is bacuase when you press 'Apply' you need to authenticate before the settings are updated)
Comment 4 Tristan Miller 2012-06-01 20:29:51 UTC
The "Login Screen" module has an "Apply" button, but it has no key symbol and is greyed out.  At the top of the window is the message "You are not allowed to save the configuration".  Same with the "Date & Time" module.
Comment 5 Craig Drummond 2012-06-02 08:46:35 UTC
So, this does sound like a system issue. As I said, I can install fonts - so I know the basic system works.

You need to find, or install, something else that uses polkit/policy it and see if that functions properly. If it does, then the font installed has an issue, if not then it is an system problem.
Comment 6 Fabio Correa 2015-07-16 00:01:51 UTC
I propose to close this bug.
Comment 7 Tristan Miller 2015-07-16 08:25:42 UTC
Installing (and removing) system fonts is now working for me in KDE 4.14.9, except that I always get prompted for root authentication twice.  Should I file a separate issue for this?
Comment 8 David Edmundson 2015-10-26 22:32:39 UTC
Git commit 7ebe57aa74cd99ff81c4d0be9f1423a47b94d64b by David Edmundson.
Committed on 26/10/2015 at 22:32.
Pushed by davidedmundson into branch 'Plasma/5.4'.

Port KAuth return code error checking in fontinst

Someone whilst porting had simply commented it out
This causes the install dialog to freeze if there's a problem.
Related: bug 344473, bug 345234
REVIEW: 125555

M  +16   -15   kcms/kfontinst/dbus/FontInst.cpp

http://commits.kde.org/plasma-desktop/7ebe57aa74cd99ff81c4d0be9f1423a47b94d64b
Comment 9 David Edmundson 2015-10-29 14:22:48 UTC
Git commit 335ad976ac9f11cd51a838a7ae7dcb38d948bfcf by David Edmundson.
Committed on 29/10/2015 at 14:22.
Pushed by davidedmundson into branch 'master'.

Wait for async call starting helper to finish before checking the reply

Otherwise the check is effectively useless.

This meant in the case where the helper could not be started the job
would never finish and clients would stuck idle or blocked.
Related: bug 344473, bug 345234
REVIEW: 125859

M  +15   -7    src/backends/dbus/DBusHelperProxy.cpp

http://commits.kde.org/kauth/335ad976ac9f11cd51a838a7ae7dcb38d948bfcf
Comment 10 Alex Groleau 2016-09-16 04:14:38 UTC
This still is a problem for me in Plasma 5.7.5