fix(desktop): catalog AppImages such as RPCS3 start from the desktop menu again (#2274)

fix(desktop): catalog AppImages start from the desktop menu through the shipped runtime

RPCS3 from the desktop menu exited at once: its own AppImage runtime runs
dwarfsextract from a memfd, which PRoot cannot execute (EACCES), and it has no
fallback. Emulator rail launches already avoid this by starting arm64 images
through the shipped uruntime (#1191); the menu entries the catalog writes did not.

The rule now lives in one launcher, droiddeck-appimage-exec, used by the session
and by the catalog's menu entries. Entries written by older versions are moved
to it with the existing menu migration.
This commit is contained in:
MaxsTechReview authored and GitHub committed 2026-11-08 08:39:23 -05:00
1 parent bc99cacd02
commit 45e39b7aaf
7 files changed
+89 -35

No files matched your search

@@ -79,4 +79,18 @@ class LegacyNamesTest {
assertEquals("Exec=/usr/local/bin/bannerlator-steam-launch\n",
File(root, "usr/local/share/applications/firefox.desktop").readText())
}
@Test fun catalogAppImageMenusStartThroughTheSharedLauncher() {
write("usr/share/applications/droiddeck-rpcs3.desktop",
"[Desktop Entry]\nName=RPCS3\nExec=env APPIMAGE_EXTRACT_AND_RUN=1 /opt/appimages/rpcs3.AppImage\nCategories=Emulator;\n")
write("usr/share/applications/droiddeck-steam-x64.desktop", "[Desktop Entry]\nExec=droiddeck-steam-x64\n")
write("usr/share/applications/other.desktop", "Exec=env APPIMAGE_EXTRACT_AND_RUN=1 /opt/appimages/other.AppImage\n")
LegacyNames.migrateRootfs(root)
LegacyNames.migrateRootfs(root)
assertEquals("[Desktop Entry]\nName=RPCS3\nExec=/usr/local/bin/droiddeck-appimage-exec /opt/appimages/rpcs3.AppImage\nCategories=Emulator;\n",
File(root, "usr/share/applications/droiddeck-rpcs3.desktop").readText())
assertEquals("[Desktop Entry]\nExec=droiddeck-steam-x64\n", File(root, "usr/share/applications/droiddeck-steam-x64.desktop").readText())
assertEquals("Exec=env APPIMAGE_EXTRACT_AND_RUN=1 /opt/appimages/other.AppImage\n",
File(root, "usr/share/applications/other.desktop").readText())
}
}