Files
pmaports-rtwo/extra-repos/systemd/plasma-workspace/org.kde.timezone.rules
T
Max Brosnahan e22fb90295 systemd/plasma-workspace: Add polkit rule to allow setting the timezone without authorization
Before this change plasma-mobile required authentication to set the timezone during the first boot setup flow. Now plasma-workspace includes the file from https://gitlab.alpinelinux.org/alpine/aports/-/blob/d61317fd62d0729c76478cf2be3f79d1c7add4a7/community/plasma-workspace/org.kde.timezone.rules.
This ensures that all the plasma front ends allow setting the timezone during first boot setup.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8925>
2026-06-29 09:43:34 +00:00

14 lines
480 B
Plaintext

// Allow any user or system service to change the system time zone
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.timedate1.set-timezone") {
return polkit.Result.YES;
}
});
// Allow any user or system service to change time synchronization, which is done when changing the time zone manually
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.timedate1.set-ntp" && subject.active) {
return polkit.Result.YES;
}
});