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>
13 lines
480 B
Text
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;
|
|
}
|
|
});
|