Skip to content

Fix: Flatpak XDG folders and idempotent release packaging - #94

Merged
MemerGamer merged 2 commits into
mainfrom
linux/rel-fix
Oct 6, 2026
Merged

MemerGamer merged 2 commits into
mainfrom
linux/rel-fix

Conversation

@MemerGamer

Copy link
Copy Markdown
Owner

Flatpak XDG folders

Could not reproduce with the 0.1.0-alpha1 bundle: installed from a throwaway FLATPAK_USER_DIR and run on a private Xvfb, Desktop/Downloads/Documents/Pictures/Music/Videos are pinned both with and without user-dirs.dirs. user-dirs.dirs is bind-mounted at the remapped $XDG_CONFIG_HOME, $HOME is the real home and --filesystem=host exposes the folders, so no new finish-args. The only way found to get just the Recycle Bin is a HOME under /tmp (flatpak gives a private /tmp). Hardening:

  • LinuxUserDirectories honours XDG_<NAME>_DIR env vars before the file (+ test).
  • The first-run Quick access seed is persisted only if a folder was found, so a launch that saw no folders retries instead of freezing a Recycle-Bin-only list.

Release CI

  • release job (only job with contents: write) uploads with gh release upload --clobber when a release for the tag exists (draft included), else creates one (prerelease if tag has -); ${{ }} values go through env.
  • Regenerates SHA256SUMS; attaches PKGBUILD and SRCINFO from gen-aur.sh.
  • gen-aur.sh no longer needs makepkg (not on ubuntu runners): fallback .SRCINFO generator, verified identical to makepkg --printsrcinfo.
  • packaging.md documents the exact publish procedure.

Tests: Files.Platform.Tests 902 passed; Files.App builds.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LeKXJc3DnK3PzAqwgA72NY

MemerGamer and others added 2 commits October 6, 2026 08:21
Honour XDG_*_DIR env vars, persist the Quick access seed only when folders were found, upload CI assets to an existing (draft) release with --clobber, attach SHA256SUMS and the AUR recipe, and document the publish procedure.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LeKXJc3DnK3PzAqwgA72NY
…ease, direct release lookup

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Reviewed-by: GPT-6.1-sol (OpenAI Codex) <noreply@openai.com>
Claude-Session: https://claude.ai/code/session_01LeKXJc3DnK3PzAqwgA72NY
@MemerGamer
MemerGamer merged commit a6f87af into main Oct 6, 2026
1 of 2 checks passed
@MemerGamer
MemerGamer deleted the linux/rel-fix branch October 6, 2026 07:00
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