GeezerVison is showing github.com — Versioned AppImage filename breaks desktop entries and symlinks on every update · Issue #8944 · pingdotgg/t3code
Versioned AppImage filename breaks desktop entries and symlinks on every update #8944DescriptionBefore submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
Build, CI, or release tooling
Steps to reproduce
- Download
T3-Code-0.0.36-x86_64.AppImage into ~/Applications.
- Create a stable-name symlink and a desktop entry pointing at it, so the app is launchable from the dock and start menu:
ln -s ~/Applications/T3-Code-0.0.36-x86_64.AppImage ~/Applications/t3-code.AppImage
# ~/.local/share/applications/t3-code.desktop
Exec="/home/<user>/Applications/t3-code.AppImage" --no-sandbox %U
- Launch the app and accept the in-app update to 0.0.37 ("Restart to upgrade").
- After the app restarts, quit it and try to launch it again from the dock or start menu.
Expected behavior
The app remains launchable from the dock and start menu after an update. Whatever path the desktop entry pointed at before the update should still resolve afterwards.
Actual behavior
Nothing happens when clicking the icon. The update wrote T3-Code-0.0.37-x86_64.AppImage into ~/Applications and deleted T3-Code-0.0.36-x86_64.AppImage, leaving the t3-code.AppImage symlink dangling and the desktop entry pointing at a file that no longer exists.
There is no error surfaced anywhere - the desktop entry silently no-ops, so it isn't obvious the update was responsible.
Because the version is baked into the artifact filename, every single update renames the binary and breaks any symlink, desktop entry, dock pin, or script that referenced the previous name. resources/app-update.yml confirms this is electron-updater against the GitHub provider:
owner: pingdotgg
repo: t3code
provider: github
releaseType: release
updaterCacheDirName: t3code-updater
Worth noting the symlink is invisible to the updater by design: the AppImage runtime resolves symlinks before setting $APPIMAGE, so electron-updater only ever sees the real versioned path and could not repoint the link even if it tried. A stable filename is the only fix that works from the app's side.
Suggested fix
Set a version-free artifactName for the Linux AppImage target in the electron-builder config, e.g. T3-Code-${arch}.AppImage. The file then keeps its name across updates, electron-updater replaces it in place, and every launcher referencing it keeps working. The version is still visible in the GitHub release, in the app itself, and via --version.
If keeping the version in the filename is deliberate, an alternative is for the packaging to also install/refresh a .desktop entry and stable symlink on update - but that is considerably more machinery for the same outcome.
Impact
Major degradation or frequent failure
Version or commit
0.0.36 to 0.0.37 (x86_64 AppImage, stable channel)
Environment
Pop!_OS 24.04 LTS, kernel 7.0.11-76070011-generic, x86_64, GNOME
Logs or stack traces
No logs are produced. The desktop entry silently fails because its Exec path no longer exists:
$ ls -l ~/Applications/
-rwxr-xr-x 1 user user 164567598 Aug 31 20:07 T3-Code-0.0.37-x86_64.AppImage
lrwxrwxrwx 1 user user 62 Aug 30 20:16 t3-code.AppImage -> /home/user/Applications/T3-Code-0.0.36-x86_64.AppImage
The app launches normally when the versioned AppImage is run directly.
Workaround
Point the desktop entry at a wrapper that resolves the newest AppImage at launch time rather than at a fixed path:
#!/usr/bin/env bash
set -euo pipefail
APP_DIR="$HOME/Applications"
newest=$(find "$APP_DIR" -maxdepth 1 -name 'T3-Code-*.AppImage' -type f -printf '%f\n' | sort -V | tail -1)
ln -sfn "$APP_DIR/$newest" "$APP_DIR/t3-code.AppImage"
exec "$APP_DIR/$newest" --no-sandbox "$@"
Related: #5174 reports the same class of problem on Windows (Start Menu shortcut lost after Nightly updates) - different mechanism, but also an update that leaves the app installed and working while breaking the launcher that points at it. Activitymmuqiitf commented on Oct 20, 2026 Additional user report: after updating through the button inside the Linux desktop app, T3 Code was no longer available through Ubuntu GNOME application search.
Environment:
- Ubuntu 26.04.1 LTS, GNOME, x86_64
- Current installed AppImage:
~/Applications/T3-Code-0.1.0-x86_64.AppImage
- Existing visible launcher still referenced version
0.0.45 (this identifies the stale launcher version, not necessarily the immediately preceding app version).
Observed desktop entries before applying a workaround:
# ~/.local/share/applications/t3code.desktop
Name=T3 Code (Alpha)
Exec=/home/<user>/Applications/T3-Code-0.0.45-x86_64.AppImage --no-sandbox %U
The old AppImage no longer existed. The entry pointing to the installed version was hidden:
# ~/.local/share/applications/com.t3tools.T3Code.desktop
Type=Application
Name=T3 Code (Beta)
Exec="/home/<user>/Applications/T3-Code-0.1.0-x86_64.AppImage" %U
NoDisplay=true
MimeType=x-scheme-handler/t3code;
A separate t3code-url-handler.desktop also still referenced 0.0.45.
Using Gio to inspect registered applications showed the current T3 Code (Beta) entry had should_show() == False. Thus the visible launcher was stale, while the current-version entry was explicitly excluded from application menus. Searching t3code with Gio.DesktopAppInfo.search() also returned no matches (the display name contains a space).
Local workaround:
- Set
NoDisplay=false on the current-version entry and add Keywords=T3Code;T3;Code; and Categories=Development;.
- Hide the obsolete visible launcher with
Hidden=true.
- Repoint the separate URL handler to the installed AppImage.
- Run
update-desktop-database ~/.local/share/applications.
Afterward, Gio confirmed the current entry was visible and discoverable for both t3 and t3code. GNOME's on-screen search still needs user confirmation. This is a local workaround, not a durable updater fix.
Related: #10894 describes the hidden URL-handler desktop entry and reports that it is rewritten on launch. A durable fix should preserve a visible, valid application launcher across updates, independently of any intentionally hidden URL handler. vibhor1102 commented on Nov 4, 2026 Additional evidence: the versioned AppImage replacement can also trigger AppImageLauncher’s “has not been integrated into your system” dialog immediately after an in-app update, even when the file is already in its configured ~/Applications directory.
Environment: Fedora 44, KDE Plasma/Wayland, x86_64; T3 Code Desktop updated from 0.1.7-nightly.20261104.4151 to 0.1.8-nightly.20261104.4165; AppImageLauncher 3.0.0-beta-2 (96cb937).
Observed sequence on 2026-11-04 (local time, UTC+05:30):
- 13:54:36: AppImageLauncher’s user-service journal schedules unintegration of the old versioned path and integration of
~/Applications/T3-Code-0.1.8-nightly.20261104.4165-x86_64.AppImage.
- T3 Code’s updater immediately executes the replacement through AppImageLauncher’s binfmt interception. The user sees the integration dialog.
- 13:54:51: the daemon executes its deferred integration and creates the replacement’s desktop entry.
- Afterwards, calling the installed libappimage’s
appimage_is_registered_in_system returns true for the replacement. Its visible AppImageLauncher entry and T3 Code’s separate hidden URL-handler entry both reference the existing file.
Source-grounded diagnosis:
- The affected T3 build (8b44f42) uses
electron-updater 6.8.9. Its AppImage updater removes the old file, chooses the new versioned filename in the same directory, and immediately relaunches with APPIMAGE_SILENT_INSTALL=true.
- AppImageLauncher 96cb937 deliberately defers daemon integration by 15 seconds (
src/daemon/worker.cpp, TIMEOUT = 15 * 1000). Its interactive launcher checks registration before launching. APPIMAGE_SILENT_INSTALL does not bypass that check; APPIMAGELAUNCHER_DISABLE does.
- This supports an update/relaunch-versus-integration race. The user reports the prompt on every opening, but repeated ordinary launches of the same already-registered version have not been reproduced, so that broader symptom remains unconfirmed.
Reproduction: integrate a versioned T3 AppImage using AppImageLauncher, accept an in-app update, and observe the immediate replacement launch before the daemon registers it. Compare timestamps in journalctl --user -u appimagelauncherd.
Local workaround prepared: a real versionless AppImage in a dedicated subdirectory, plus a persistent desktop launcher exporting APPIMAGELAUNCHER_DISABLE=1. The installed updater preserves versionless custom filenames. A versionless symlink pointing to a versioned target is insufficient. This setup has not yet been validated through a future update.
A durable fix should keep the installed launch path and desktop identity stable and avoid prompting during updater relaunch while external integration is pending. Related: closed, unmerged #8983 and duplicate #9945.
Investigated and written with GPT-6.1-Sol through the Codex harness in T3 Code. GiorgosPap777 commented on Nov 12, 2026 Additional report via t3 triage. In this case the stale launcher left a remotely managed machine with no app and no server. It also shows a second failure: the app does not restart after the update when it was launched through appimage-run (NixOS).
Environment
- NixOS, Linux 6.18.60, x86_64
- Desktop AppImage in
~/Applications, launched from a hand-written desktop entry through appimage-run (NixOS cannot run AppImages without it), with T3CODE_HOST=0.0.0.0 and server exposure set to network-accessible
- Version the bug happened on: desktop app 0.1.6, whose updater did the install. Target: 0.1.9 (stable). Triage CLI: 0.1.6.
- Update started remotely from T3 Connect on a phone
What happened
- The user tapped update on the phone for the desktop app on this machine.
- 00:08:36–00:09:07 (UTC+2): the download finished,
T3-Code-0.1.9-x86_64.AppImage was written to ~/Applications, and T3-Code-0.1.6-x86_64.AppImage was deleted. At 00:09:08, ~/.t3/runtime/desktop-update-install.json ({"fromVersion":"0.1.6","targetVersion":"0.1.9"}) and the desktop-update-restart marker were written.
- The journal shows both
app-com.t3tools.T3Code-*.scope units ending at 00:09:08. No desktop process started after that, and desktop.trace.ndjson has no desktop.startup after the update.
- The desktop entry still named the deleted 0.1.6 file. Launching manually and rebooting both did nothing, with no error shown. The phone could not reach the machine again until the user ran the npm
t3 CLI in a terminal.
Why the restart fails under appimage-run (from source, v0.1.6)
DesktopUpdates calls quitAndInstall({ isSilent: true, isForceRunAfter: true }). In electron-updater 6.8.9, AppImageUpdater.doInstall unlinks $APPIMAGE, runs mv to move the download to the versioned name, then calls spawnLog(destination, [], env), which runs the new AppImage directly. appimage-run sets $APPIMAGE, so getAutoUpdateDisabledReason treats this as an installable AppImage. The direct exec, however, bypasses appimage-run, which NixOS needs to run AppImages. No log captured the spawn error, so the exact failure is inferred. The outcome, no process after quit, is visible in the journal.
As a result, on NixOS with appimage-run, an update started from a phone leaves the host with no app, no server, and a launcher pointing at a deleted file.
Workaround (confirmed working here)
Rename the AppImage to a name without a version and point the desktop entry at it. electron-updater then overwrites the file in place on later updates (the !/\d+\.\d+\.\d+/.test(existingBaseName) branch):
mv ~/Applications/T3-Code-0.1.9-x86_64.AppImage ~/Applications/T3-Code-x86_64.AppImage
# desktop entry: Exec=env T3CODE_HOST=0.0.0.0 appimage-run ~/Applications/T3-Code-x86_64.AppImage %U
The automatic restart after an update will still fail under appimage-run, so the app has to be opened by hand once after each update.
Related: #31507 (the ~/.t3/bin/t3 shim here also still names the deleted 0.1.6 AppImage), #10685, #23188.
Diagnosed with t3 triage by Claude Opus 5.5 (claude-opus-5-5) in Claude Code.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|