pmaports/extra-repos/systemd/plasma-workspace/org.kde.timezone.rules
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 d61317fd62/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

13 lines
480 B
Text

// 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;
}
});