Skip to content

Desktop app and tray

limdm-desktop runs as the user in every graphical session. It shows a tray icon, opens the desktop app and asks the user for what only the user can provide. It talks only to the agent socket /run/limdm/agent.sock; the agent identifies callers by their peer credentials and only serves users with an active local session (and root).

Starting

The helper starts through the systemd user unit limdm-desktop.service (enabled for all users, bound to graphical-session.target), through XDG autostart (/etc/xdg/autostart), and where neither applies (sway or Hyprland without systemd integration, i3) the agent starts it on its next cycle. A lock in $XDG_RUNTIME_DIR keeps one instance per user.

Option
limdm-desktop tray icon and reminders
--no-tray only the reminders, for sessions without a tray host
--message TEXT, --message-title TITLE show a message from IT (started by the agent)
--reboot-at HH:MM, --reboot-defers N, --reboot-defer-minutes M offer to postpone a planned restart (started by the agent)

Recovery key prompt

While com.limdm.disk-encryption asks for escrow and a LUKS volume has no escrowed key, the helper opens the passphrase dialog by itself, in the user's language: half a minute after login and within a minute of the agent reporting the volume. Closing it postpones it by ten minutes, and it comes back at the next login, until the key is escrowed. A lock in $XDG_RUNTIME_DIR keeps it to one dialog per user. The agent adds a notification once a day; Set Up Recovery Key… in the tray and the page Disk Encryption of the app ask for the same passphrase. Until the agent finished its first cycle after a start the socket answers that it is starting, so the helper never mistakes an unknown volume list for "every disk has a key".

Tray

The tray icon is the symbolic LiMDM logo (dark shield on a white fill, readable on light and dark panels) with a status badge whose shape carries the state, not only its color: a check mark (compliant), an exclamation mark (checks failing, remote support running) or a cross (no contact to the server, agent not reachable, locked). The tooltip and the first menu line say the same in words. The menu names who manages the device, shows the state and the last sync, and offers Open LiMDM…, Install Software…, Compliance…, Set Up Recovery Key… and Confirm Company Account… when needed, Sync Now (at most every 30 seconds) and Agent Log…; the agent version is at the bottom and in the tooltip. While IT runs a remote shell it shows IT remote support session running. The tray uses StatusNotifierItem: sway with waybar, KDE Plasma, Xfce, Cinnamon and Ubuntu show it; stock GNOME needs the AppIndicator extension.

Desktop app

LiMDM in the applications menu (or Open LiMDM… in the tray) opens a window in the style of GNOME Settings (GTK 4, libadwaita 1.4) with these pages:

Page
Overview state, who manages the device, last sync, Sync Now, open tasks such as a missing recovery key
Software the company catalog: install, remove or request apps (Software catalog)
Compliance every check with its result, grouped by failing, exceptions, not applicable and passed
Blueprint every setting (declaration) of the blueprint in force, secrets masked
Certificates CA certificates IT installed, with subject, issuer, validity and fingerprint
Disk Encryption store a recovery key with the disk passphrase
Agent Log journal entries of the agent and its watchdog, optionally only warnings and errors
About versions and server

The window reloads the device state every minute. It rebuilds the visible page only when the data changed, and never while the user types in it or a field holds text not sent yet (the disk passphrase); the software search keeps its text. It shows the company logo, or the LiMDM logo, and follows the system's light or dark style; the button next to the logo switches between system, dark and light. Without GTK 4 and libadwaita 1.4 (Ubuntu 22.04) the tray falls back to simple dialogs.

Dialogs and notifications

Dialogs are libadwaita message dialogs from the desktop app (limdm-desktop-ui --dialog); without GTK 4 and libadwaita 1.4 the helper uses zenity (kdialog on KDE Plasma). Texts of the app, the tray, the dialogs and the notifications follow the session language (LC_ALL, LC_MESSAGES, LANG, then LANGUAGE) and fall back to the system locale, then English. Languages: English, German, French, Spanish, Italian and Russian (Languages and translation). Compliance check titles and the agent's error messages are translated too; texts IT writes (messages, custom check titles) are shown as written. The desktop login prompt (PAM) uses the system locale, since the login screen passes no session language. Dialogs follow the GNOME HIG: a short heading, one sentence, buttons named after their action.

Users see a notification when IT schedules a restart or shutdown (with the time), locks the device, starts or ends a remote shell, or needs a recovery key. Send message… on a device page shows a notification and a dialog to everyone signed in on the desktop.

Restart after updates

When com.limdm.updates restarts the device after updates (reboot), the agent schedules the restart with shutdown -r reboot_notice_minutes ahead (default 5) and notifies every graphical session. With reboot_max_defers above 0 the helper asks Restart scheduled with the buttons Postpone N minutes and Restart as planned. Each postponement moves the restart by reboot_defer_minutes (default 60) and is recorded as a device event; the dialog comes again shortly before the new time until no postponements are left (com.limdm.updates).