cakefoot/src/polkit_network_manager_rule.js
Cocktail Frank c95e1a010d Add Markdown docs for installing and operating Cakefoot arcade
Move installation instructions for Cakefoot arcade from the main README
into a separate file, and complete them. Add a document with details
about how to use the operator's menu.

Update the arcade cabinet daemon service file to relaunch after 30
seconds instead of 5 to give operators time to log in and stop the
service if necessary.
2025-03-06 18:40:47 -05:00

7 lines
223 B
JavaScript

polkit.addRule(function(action, subject) {
if (action.id.startsWith("org.freedesktop.NetworkManager") &&
(subject.isInGroup("sudo") || subject.isInGroup("netdev"))) {
return polkit.Result.YES;
}
});