CommandRun is a browser extension to allow executing native commands.
CommandRun is typically used in Kiosk environments where it's desired to run a restricted set of commands from a locked-down browser. These commands may include reboot, or start a flash drive.
The list of websites and commands are configurable.
The user can override the default list using normal extension preferences in about:addons.
Set the allowed sites, and the allowed commands.
The administrator can override the policies in policies.json
{
"policies": {
"3rdparty": {
"Extensions": {
"[email protected]": {
"allowed_commands": [ "/usr/bin/maybe" ],
"permitted_sites": [ "example.net", "example.com" ]
}
}
}
}
}
You can build CommandRun from this source by running 'make all'. To build CommandRun with different defaults, try:
sed. Basically sed is used as a precompiler for macro expansion.
- pylint
- closure-compiler
These tools are used to do python and javascript checking, so they are suggested when modifying the source. They are not required to build.
The extension can be installed per user using the browser add-on preferences.
If you choose to do this, you'll have to install the App manifest in ~/.mozilla/native-messaging-hosts/ and edit commandrun.json to point to the path for the binary yourself.
You can install the extension system-wide. This will also install the native app.
The XUL add-on was written by Achim Abeling [email protected]
For more information, go to https://github.com/berenddeschouwer/commandrun