Skip to content

Add Flatpak detection & launcher path support #46

Description

@NortySpock

Problem: just bar::launch (GUI default) requires a Beyond-All-Reason*.AppImage on Linux because _launch_uses_appimage() returns true for Chobby boots. Flatpak users don't have an AppImage — they launch via flatpak run info.beyondallreason.bar. The shell scripts have no awareness of Flatpak at all.

Changes needed:

  1. scripts/setup.shensure_bar_appimage_path_set(): After the existing ~/Applications/ auto-detect, run flatpak info info.beyondallreason.bar &>/dev/null and if found, offer the user an option to use Flatpak (or auto-detect it silently). Add new environment variable BAR_FLATPAK_PATH=flatpak:info.beyondallreason.bar to .env. (or possibly we need to emit the full application path)

  2. scripts/setup.shbar_appimage_resolves(): Accept flatpak:* as a valid sentinel in addition to file/directory paths. (or have a separate function that checks for bar_flatpak_resolves() )

  3. scripts/setup.shdetect_game_dir(): Add auto-detection of the Flatpak data dir at ~/.var/app/info.beyondallreason.bar/data so linking and chobby-channel detection work out of the box.

  4. scripts/launch.shrun_linux(): When BAR_FLATPAK_PATH exists, inject --launcher-binary flatpak(or equivalent) into thebar-launch` args so the Python side knows which execution mode to use.

  5. scripts/doctor.sh: Report Flatpak install alongside the AppImage status

(this issue was researched and written by Deepseek v4 flash, with an edit by NortySpock to focus on a new BAR_FLATPAK_PATH environment variable. It could easily contain errors)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions