Skip to content

AppImages kept outside a launcher (Gear Lever's ~/AppImages) are found - #383

Merged
elripalda merged 3 commits into
elripalda:mainfrom
Xarishark:feat/recomplaunch-issue-382-9aacec
Nov 21, 2026
Merged

elripalda merged 3 commits into
elripalda:mainfrom
Xarishark:feat/recomplaunch-issue-382-9aacec

Conversation

@Xarishark

Copy link
Copy Markdown
Collaborator

What this changes

Fixes #382. On Linux, recomps kept as loose AppImages (like the ones Gear Lever keeps in ~/AppImages) weren't found, so the launcher offered to download them again. The scan for recomps you already have only looked in other launchers' lists and Steam.

  • Where it looks now (Linux): ~/AppImages (Gear Lever), ~/Applications (AppImageLauncher), ~/.local/bin, and the AppImage that each app-menu desktop file in ~/.local/share/applications starts. A link counts by the file it points to, so Gear Lever's ~/.local/bin/dusklight (no .appimage) is the same game as ~/AppImages/dusklight.appimage.
  • What counts: each AppImage is its own game, even when several share a folder. Like Steam's games, only ones that match a recomp (by their embedded recomplauncher.json project, else by name) or have "recomp" in their name are offered; other apps there are left alone. The launcher's own AppImage, and older copies of it, are skipped. A folder that holds other things (home, Downloads) is skipped too.
  • Already in the Library: an AppImage the launcher unpacked before shows as already in the Library (by from_appimage), so it isn't offered twice.
  • The lists: Recomps You Already Have and Settings → Bring Your Games listed found games one per folder, so two AppImages in ~/AppImages became one row. Each AppImage is its own row now, labelled "An AppImage on this PC" (translated in all languages, added mid-file).

Adding one works as before: the AppImage is unpacked into the Recomp Library and the player's AppImage stays where it is.

No change to recomplauncher.json, the schema or the docs.

How you tested it

On Bazzite (KDE VM):

  • cargo test: 969 passed (22 adopt tests, 10 of them new)
  • node --test tests/*.test.cjs: 633 passed; all i18n files are valid JSON
  • Tried it in the launcher: a debug build with a home folder laid out like the reporter's (cemu, dusklight, lichii, recomplauncher, savage_wind, solidcraft and umoupen .appimage in ~/AppImages, Gear Lever's link in ~/.local/bin and its desktop file), the real catalog:
    • a few seconds after start: "Found 2 recomps you already have. Add to Library";
    • Recomps You Already Have: Dusklight and Savage Wind Recomp as two rows; the other five AppImages aren't listed;
    • Add 2 Games: both unpacked into the Recomp Library and shown in the Library;
    • Bring Your Games afterwards: both already in the Library.

The test AppImages were small made-up images, not the real games, so nothing was played. Not tried on Windows or Mac (the scan there is unchanged).

Checklist

  • One change per pull request
  • No version bump or patch notes (those are done at release time)
  • If it changes what developers can write in recomplauncher.json: the schema and docs are updated too (it doesn't)

…are found

The scan for recomps the player already has looked only in other launchers' lists and Steam, so a recomp kept as a loose AppImage was offered for download again. It now also looks in ~/AppImages, ~/Applications and ~/.local/bin, and at the AppImages the app menu's desktop files start. Each AppImage is its own game even when several share a folder, the launcher's own is left out, and one the launcher unpacked before shows as already in the Library. Fixes elripalda#382
Recomps you already have and Bring Your Games listed found games by folder, so two AppImages in ~/AppImages became one row. They're told apart by the AppImage now.
…AppImage it points to

Gear Lever names that link without .appimage, so it was passed over; a link now counts by its real file.
@Xarishark
Xarishark marked this pull request as ready for review November 20, 2026 23:51
@elripalda
elripalda merged commit 6035ec0 into elripalda:main Nov 21, 2026
6 checks passed
@Xarishark
Xarishark deleted the feat/recomplaunch-issue-382-9aacec branch November 23, 2026 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Linux] Improve AppImage detection

2 participants