Bug 423099 - Time zone and time configuration don't allow changes, can't authorize either
Summary: Time zone and time configuration don't allow changes, can't authorize either
Status: RESOLVED WORKSFORME
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_clock (show other bugs)
Version: 5.19.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Paul Campbell
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-17 12:00 UTC by phrxmd
Modified: 2020-06-29 20:35 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot. Note how it says "you need to authorize before saving", but I can't make any changes, so no saving and no authorizing. (189.30 KB, image/png)
2020-06-17 12:00 UTC, phrxmd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description phrxmd 2020-06-17 12:00:16 UTC
Created attachment 129444 [details]
Screenshot. Note how it says "you need to authorize before saving", but I can't make any changes, so no saving and no authorizing.

SUMMARY
Catch-22 when trying to change the time zone, or the time, as a regular user. I would need to authorize myself, but all controls to make changes are disabled and I never get to the password prompt.

STEPS TO REPRODUCE
1. Open time/time zone configuration as a regular user.

OBSERVED RESULT
I get a message that tells me I will need to authorize myself upon saving. But all input fields where I could make such changes are disabled, so no changes ever get registered, the "Apply" button stays disabled, I never get to authorize myself. As a result I can't change either time or time zone.

EXPECTED RESULT
Either a MacOS-style "unlock" icon that allows me to authorize myself and then make changes; or being allowed to make changes and authorize myself when applying them.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20200614
KDE Plasma Version: 5.19.0
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0
Kernel Version: 5.7.1-1-default
OS Type: 64-bit
Comment 1 David Edmundson 2020-06-17 12:17:33 UTC
What happens when you run

"timedatectl set-timezone Europe/London"
Comment 2 phrxmd 2020-06-17 13:26:25 UTC
$ date
Mi 17. Jun 15:25:25 CEST 2020
$ timedatectl set-timezone Europe/London
$ date
Mi 17. Jun 14:25:34 BST 2020
Comment 3 David Edmundson 2020-06-17 13:28:47 UTC
but did you get a GUI prompt when you ran that timedatectl command?
Comment 4 phrxmd 2020-06-17 14:11:56 UTC
No. It just changed it.
Comment 5 David Edmundson 2020-06-17 14:40:46 UTC
Can I see

pkaction -v --action-id org.freedesktop.timedate1.set-timezone   

and 

ps ux | grep polkit-kde-agen
Comment 6 phrxmd 2020-06-17 15:00:37 UTC
Sure:

$ pkaction -v --action-id org.freedesktop.timedate1.set-timezone
org.freedesktop.timedate1.set-timezone:
  description:       Set system timezone
  message:           Authentication is required to set the system timezone.
  vendor:            The systemd Project
  vendor_url:        http://www.freedesktop.org/wiki/Software/systemd
  icon:              
  implicit any:      auth_admin_keep
  implicit inactive: auth_admin_keep
  implicit active:   auth_admin_keep
$ ps ux | grep polkit-kde-agen
reichmu+ 11328  0.0  0.0   6124  2064 pts/1    S+   20:59   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn polkit-kde-agen
$ ps ux | grep polkit-kde     
reichmu+  2396  0.0  0.3 752324 63476 ?        Sl   Jun16   0:09 /usr/lib64/libexec/polkit-kde-authentication-agent-1
reichmu+ 11198  0.0  0.0   6120  2124 pts/1    S+   20:58   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn polkit-kde
Comment 7 phrxmd 2020-06-28 09:29:41 UTC
The problem has magically disappeared for me. :/

I updated to 5.19.2, and removed the activity manager related config files in ~/.config which had become corrupted, but I can't say whether that is what made it go away.
Comment 8 Christoph Feck 2020-06-29 20:35:09 UTC
Thanks for the update; changing status.

If you are able to reproduce the issue, please share your investigations in this or a new ticket.