1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/plasma-desktop/org.kde.timezone.rules

13 lines
504 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;
}
});