Skip to content

AppImage starts again after an update - #73

Merged
Rdiger-36 merged 2 commits into
mainfrom
fix/appimage-restart
Oct 12, 2026
Merged

Rdiger-36 merged 2 commits into
mainfrom
fix/appimage-restart

Conversation

@Rdiger-36

Copy link
Copy Markdown
Owner

After an update the new AppImage did not open (reported on Linux ARM).

The jpackage launcher on Linux sets _JPACKAGE_LAUNCHER for the JVM (LinuxLauncherLib.cpp). The new AppImage, started from the JVM, inherited it, so its launcher took itself for a restart of the JVM from within (setInitJvmFromCmdlineOnly), started the JVM without the application and ended. start() in Installer now removes the variable before it starts a process; on macOS open starts with a fresh environment anyway, Windows ignores it.

Reproduced with a temporary workflow on ubuntu-26.04-arm (removed again): a jpackage AppImage starting itself with the inherited environment printed the java usage and exited with 1; without the variable the new process started and exited with 0.

Since the update runs the code of the installed version, this works from the update after the next one (the beta that has this fix updating to the following one); the same holds for the renaming of #71.

@Rdiger-36 Rdiger-36 added the bug Something isn't working label Oct 12, 2026
@Rdiger-36
Rdiger-36 merged commit 56fc390 into main Oct 12, 2026
5 checks passed
@Rdiger-36
Rdiger-36 deleted the fix/appimage-restart branch October 12, 2026 21:27
@Rdiger-36 Rdiger-36 mentioned this pull request Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant