Expand description
The Linux side of “Upgrade & restart”
(docs/specs/SPEC_UPGRADE_FOR_USERS_AND_AGENTS_2026_10_15.md §4.2, phase
3e), for upgrade_restart: checking what srv names to start (a portable’s
AgentMux/agentmux.sh, or an AppImage), asking the user with zenity or
kdialog, and what the new version must not inherit.
Constants§
- APPIMAGELAUNCHER_
OFF - Set on the new version: AppImageLauncher, when installed, otherwise stops a freshly downloaded AppImage at its “integrate?” window until someone answers.
- NOT_
INHERITED - What this version’s own start set for its own files, which the new
version must not inherit:
agentmux.shand AppRun pointLD_LIBRARY_PATHat this version’susr/bin(the new launcher would load thislibcef.so), and AppRun’sAPPIMAGE… would make it think it is this AppImage. Both set their own again when the new version starts.
Statics§
- DIALOG_
PID 🔒 - The dialog’s process while it is open (0 when none).
Functions§
- check_
target - Check the new version srv names at
targetagainst this install. This install is a portable inown_root, or the AppImageown_appimage; the new version, ofversion, is where srv puts it: beside this one, or inupdates/<v>/of the channel (channel_dir) or of this version’sdata_dir. - confirm
- Ask the user
bodyin a native dialog,zenity(GNOME and most desktops) or elsekdialog(KDE): a separate program no page or agent in AgentMux can click.trueonly for an explicit “Upgrade & restart”. With neither installed, nothing restarts: the new version is staged, and the user can start it. - confirm_
labelled confirmwith its own name for the Yes button (the other is “Not now”).- dismiss
- Close the open dialog (as “Not now”).
- is_
appimage_ 🔒name - Whether
nameis the release’s AppImage forversion(AgentMux_<v>_amd64.AppImage), or the copy srv makes beside one recorded for another channel (AgentMux_<v>_amd64-2.AppImage). - is_
executable 🔒 - notify
- Tell the user
bodyin a native dialog (zenityorkdialog), and wait for the OK; with neither installed, it only goes to the log. - pango_
escape 🔒 textfor zenity’s--text, which reads Pango markup: a path’s&,<or>shown as they are.- portable_
root - The Linux portable folder (
AgentMux/, holdingagentmux.sh) the launcher inexe_dir(itsusr/bin/) belongs to.