Skip to content

Add Flatpak base support - #64

Merged
freakboy3742 merged 1 commit into
beeware:mainfrom
limdingwen:main
Sep 17, 2025
Merged

Add Flatpak base support#64
freakboy3742 merged 1 commit into
beeware:mainfrom
limdingwen:main

Conversation

@limdingwen

@limdingwen limdingwen commented Sep 14, 2025

Copy link
Copy Markdown
Contributor

Adds the optional ability for the user to add a base to the manifest.yml.

Base is different from runtime. This can help fix PySide, for example, by using https://github.com/flathub/com.riverbankcomputing.PyQt.BaseApp/ as the base.

id: org.kde.PyQtWebEngineApp
runtime: org.kde.Platform
runtime-version: '6.9'
sdk: org.kde.Sdk
base: com.riverbankcomputing.PyQt.BaseApp
base-version: '6.9'
cleanup-commands:
  - /app/cleanup-BaseApp.sh
finish-args:
  - --env=QTWEBENGINEPROCESS_PATH=/app/bin/QtWebEngineProcess
  ...
modules:
  - name: PyQtWebEngineApp
...

Refs:

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

Base is different from runtime. This can help fix PySide, for example, by using https://github.com/flathub/com.riverbankcomputing.PyQt.BaseApp/ as the base.
@limdingwen
limdingwen marked this pull request as ready for review September 14, 2025 07:18
limdingwen added a commit to limdingwen/KemonoDownloader that referenced this pull request Sep 14, 2025
Requires beeware/briefcase-linux-flatpak-template#64 to be merged in first! In the meantime, you can use my template:

```
[tool.briefcase.app.kemonodownloader.linux.flatpak]
flatpak_runtime = "org.kde.Platform"
flatpak_runtime_version = "6.7"
flatpak_base = "com.riverbankcomputing.PyQt.BaseApp"
flatpak_base_version = "6.7"
flatpak_sdk = "org.kde.Sdk"
template = "https://github.com/limdingwen/briefcase-linux-flatpak-template/"
```

Before this commit, running `briefcase build linux flatpak` would work, but running it would cause a missing `libgssapi_krb5.so.2` error and an instant crash.

One of the ways to fix this is by using https://github.com/flathub/com.riverbankcomputing.PyQt.BaseApp/ as the base, which this commit does.

@freakboy3742 freakboy3742 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - this change makes sense to me!

@freakboy3742
freakboy3742 merged commit 7447512 into beeware:main Sep 17, 2025
37 checks passed
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.

2 participants