Bug 226212 - Not allowed to make system changes in KDE
Summary: Not allowed to make system changes in KDE
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-26 04:34 UTC by Slava
Modified: 2018-12-14 01:54 UTC (History)
1 user (show)

See Also:


Attachments
Can't change time/timezone (63.17 KB, image/png)
2018-02-26 04:34 UTC, Slava
no flags Details
Can't change KDE wallet configuration (62.00 KB, image/png)
2018-02-26 04:35 UTC, Slava
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Slava 2018-02-26 04:34:29 UTC
Created attachment 191009 [details]
Can't change time/timezone

Hello,

I'm running KDE Plasma desktop 5.12.1 from Area51 on Freebsd 11.1.  Everything works great and is stable, however I'm not able to make changes to some system settings which should normally prompt for the root password when required.  On Freebsd I'm just not being allowed to change them an shown a message "You are not allowed to save the configuration" (see attached screenshots).  Even if I make changes, the OK button remains greyed out, so I can't apply them.

From some searching, it appears that to make system changes from the UI, polkit is required; I confirmed all the polkit packages for KDE are installed.  I'm not sure if extra configuration is required, I haven't had this issue on numerous Linux systems I've used with Plasma desktop and have never had to work with polkit directly.

I've found this error in the .local/share/sddm/xorg-session.log (this is not directly related to sddm, the same problem exists if launching startkde from cli without sddm):

** (process:983): CRITICAL **: polkit_agent_listener_register_with_options: assertion 'POLKIT_IS_SUBJECT (subject)' failed
"Cannot register authentication agent!"
Authentication agent result: false
Couldn't register listener!

P.S. [ade] from #kde-freebsd sent me
Comment 1 Slava 2018-02-26 04:35:59 UTC
Created attachment 191010 [details]
Can't change KDE wallet configuration
Comment 2 Tobias C. Berner freebsd_committer freebsd_triage 2018-03-03 20:36:30 UTC
Hi Slava

Yes, there is something fishy with Polkit. 

For the timezone in the clock widget, please note, that Qt5 expects /etc/localtime to be a symlink -- if it is a real file, Qt5 (and therefore Plasma5) won't show you the local time zone by default.


mfg Tobias
Comment 3 Tobias C. Berner freebsd_committer freebsd_triage 2018-10-20 18:36:33 UTC
The timezone issue has been fixed in the qt5-package in the mean time.
Comment 4 Slava 2018-12-14 01:54:05 UTC
This has been fixed a few updates ago.  polkit is working as it should and can make system changes from within KDE, now prompts for root password when necessary.

Thank you