Flatpak: import settings/data from a native (tarball/.deb/AUR) Slipstream install #416
Labels
No labels
amd
avatars
bug
builder
cannot-reproduce
crash
epic
feature
from-viewer
gl-removal
known-limitation
monitoring
parity
perf
platform
priority
critical
priority
high
priority
low
priority
medium
provenance
rendering
rt
status
in-progress
status
testing
status
up-next
triage
ui
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sky_line/Slipstream#416
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
People moving from a tarball / .deb / AUR install to the Flatpak (or running both) start the Flatpak with no settings, chat logs, presets, caches or per-account data, because the two keep user data in different places.
Where data lives (verified)
~/.slipstreamviewer(lldir_linux.cpp, passwd home).--persist=.slipstreamviewerinscripts/packaging/flatpak/org.slipstreamviewer.Slipstream.yml, so the data really lives in~/.var/app/org.slipstreamviewer.Slipstream/.slipstreamviewer. Inside the sandbox that directory is mounted at~/.slipstreamviewer, which also means the host's real~/.slipstreamvieweris hidden inside the sandbox.slviewerimportcore.cppfindSourceViewers, the Firestorm/LL/Alchemy import) has read-only filesystem permissions for~/.firestorm*,~/.secondlife,~/.alchemyviewer,~/.alchemynextand~/.blackdragon, but not for a tarball Slipstream install. Adding--filesystem=~/.slipstreamviewer:rowould collide with the--persistmount on the same path, so it needs a different route.Goal
On the Flatpak's first run, or from the importer, offer to import settings and data from an existing native Slipstream install, using the same UI as importing from Firestorm/LL. Also cover the reverse (Flatpak → native) for people leaving the Flatpak.
Options to evaluate
--filesystem=~/.slipstreamviewer:ro, if Flatpak resolves that path outside the persist overlay (check exactly how--persistand--filesysteminteract on the same path). Otherwise expose the parent with a narrow pattern, or symlink-free host access (e.g.xdg-paths don't apply here). Investigate before choosing.~/.slipstreamviewerfolder through the portal (works in any sandbox, no permanent permission). Good fallback UI: "Import from another Slipstream install…".cp -a ~/.slipstreamviewer/. ~/.var/app/org.slipstreamviewer.Slipstream/.slipstreamviewer/), plus a launcher / flatpak-spawn helper. Simple, but manual; good as a wiki fallback either way.What to import
Same categories as the Firestorm/LL importer:
Never overwrite existing Flatpak data without the importer's usual backups. Skip machine-specific items (absolute paths such as custom cache or chat log locations, which need rewriting or prompting).
Done when