Bug 490899 - Date & Time KCM asks for password twice after applying time zone change
Summary: Date & Time KCM asks for password twice after applying time zone change
Status: RESOLVED DOWNSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_clock (other bugs)
Version First Reported In: 6.1.3
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
: 498144 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-07-27 16:59 UTC by Patrick Silva
Modified: 2025-04-24 11:15 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2024-07-27 16:59:56 UTC
STEPS TO REPRODUCE
1. open Date & Time KCM 
2. click on "Time zone" tab
3. select any time zone but the current one
4. apply the change - the authentication dialog shows up
5. type your password and press enter

OBSERVED RESULT
after the last step, Date & Time KCM asks for password again 

EXPECTED RESULT
Date & Time KCM asks for password once

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Graphics Platform: Wayland
Comment 1 Nate Graham 2024-07-27 20:18:53 UTC
Can confirm.
Comment 2 Nate Graham 2025-01-02 20:25:50 UTC
*** Bug 498144 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2025-04-24 11:15:59 UTC
I figured out what's going on here: changing the timezone requires poking two systemd services:
- org.freedesktop.timedate1.set-ntp
- org.freedesktop.timedate1.set-timezone

Both require authentication, so you're asked twice. The only practical way to improve this is to ask distros to ship polkit rules that suppress one or both of these by allowing them to proceed without authentication. I've written about this in https://community.kde.org/Distributions/Packaging_Recommendations#Polkit_configuration and notified distros about it.