Skip to content

[WIP] Use native file pickers on linux#57

Draft
ZadenRB wants to merge 6 commits into
project-slippi:slippifrom
ZadenRB:xdg-desktop-portal
Draft

[WIP] Use native file pickers on linux#57
ZadenRB wants to merge 6 commits into
project-slippi:slippifrom
ZadenRB:xdg-desktop-portal

Conversation

@ZadenRB

@ZadenRB ZadenRB commented Mar 15, 2026

Copy link
Copy Markdown

Description

A more proper fix for project-slippi/slippi-launcher#543.
Adds the xdgdesktopportal platform theme to the AppImage. Also updates linuxdeploy-plugin-qt to the continuous build. This update was needed because the old linuxdeploy-plugin-qt version added a script in apprun-hooks which set QT_QPA_PLATFORMTHEME=gtk2. The newer version skips this addition for QT6.

Edit to add:
It may be nice to still do the launcher environment fix linked above to cover any cases where xdg isn't working for whatever reason. But sort of depends on the answer to the question below.

What should the default platform theme be?

What I've done here is added a bit to linux-env.sh that sets QT_QPA_PLATFORMTHEME to xdgdesktopportal automatically if a portal is available. This may be overly defensive - can we safely assume all users have a desktop portal running?

Another option that I got working locally was bundling qt6ct platform theme & styles, which allows users to configure what dialogs are used. This is nice in theory, but is a weird end user experience since qt6ct will show all styles/themes that the host system has installed, but only options that are also bundled in the AppImage will actually work (effectively fusion, windows, builtin qt6ct styles & xdg desktop portal for dialogs). When other choices are selected the app will be full-default light mode fusion.

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.

1 participant