GNOME Extension¶
The intuneme GNOME Shell extension adds a Quick Settings toggle for starting and stopping the container, along with buttons to launch Edge and Intune Portal — all without opening a terminal.
Note
The extension is entirely optional. All intuneme functionality is available through the CLI, which works on any desktop environment.
Requirements¶
- GNOME Shell 47 or later
- intuneme must be initialized (
intuneme initcompleted)
Install¶
intuneme extension install
Log out and back in to activate the extension. After logging back in, the intuneme toggle appears in the Quick Settings panel (the panel that opens from the top-right corner of the screen).
Uninstall¶
The extension is removed when you run a full uninstall:
intuneme destroy --all
This also removes the polkit policy action that enables the extension's passwordless operations. See Upgrading — Re-enrollment for details on what destroy --all removes.
What the extension provides¶
- Quick Settings toggle — Displays the current container state. Clicking it starts or stops the container.
- Status details — The popup menu shows whether the container is running and enrollment status.
- App shortcuts — Buttons to open a shell, launch Microsoft Edge, or launch Intune Portal directly from Quick Settings.
- Apps submenu — The Edge web apps installed in the container ("Apps > Install this site as an app" in Edge), each 1 click away. The list is read with
intuneme open app --list --jsoneach time the menu opens, so it follows what you install in Edge without a restart.
The extension monitors container state via D-Bus signals from systemd-machined for instant updates, with periodic polling as a fallback.
Supported terminal emulators¶
The shell shortcut in the extension opens an interactive terminal inside the container. The extension checks $TERMINAL first, then tries the following terminals in order: Ghostty, Ptyxis, GNOME Console (kgx), GNOME Terminal, and xterm.
Set the TERMINAL environment variable to override the default search order — for example, if you prefer a terminal that is not in the built-in list.
Passwordless app launch¶
intuneme init installs a sudoers rule at /etc/sudoers.d/intuneme-exec that allows the host user to launch container apps without a password prompt. This is what enables the extension (and desktop shortcuts) to launch Edge and Intune Portal without a terminal window appearing to ask for a sudo password.
Instead of authorizing nsenter directly, the rule grants passwordless sudo for a single root-owned helper at /usr/local/libexec/intuneme/nsenter-exec. The helper is a copy of the intuneme binary; the machine, user, numeric UID, home, and container rootfs are baked into a root-owned config at install time, and the caller supplies only the command to run. At runtime the helper looks up and validates the container itself, enters only that container's namespaces, drops to the configured numeric UID, and then runs the command. This is required because sudo-rs (the Rust sudo/su that ships by default on Ubuntu 25.10 and later) rejects wildcards inside command arguments, which the previous rule relied on and which caused an error on every sudo command.
The rule is narrowly scoped:
- It only permits the single fixed helper; the nsenter flags and target container are baked into the helper, not supplied by the caller.
- The caller cannot supply a process ID, and the helper never executes a container-controlled binary (such as
/bin/su) while privileged. It drops to the host user's numeric UID first. - The helper binary and its config are installed root-owned and not user-writable.
- It persists across
intuneme startandintuneme stopcycles;startreinstalls it so CLI upgrades apply. - It is removed (along with the helper and config) when you run
intuneme destroy.
Tip
If the rule or helper goes missing (for example, after upgrading from an older version that used the wildcard rule), running intuneme start will reinstall both automatically.