fix(builder): share installed and portable launcher folders #2629
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2629
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:feat/shared-linux-launcher-folders"
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?
Players on Linux and Windows who start a new standalone builder and later open the Rust launcher should find the same default profile and reuse their build tools and shader cache. This change aligns the fresh-install paths with the launcher rewrite.
Summary
A new standalone profile lives under
$XDG_DATA_HOME/longshot/profiles/defaultand the builder cache under$XDG_CACHE_HOME/longshot/longshot-builder. On Windows, fresh versions use%LOCALAPPDATA%\Longshot\data\profiles\defaultand%LOCALAPPDATA%\Longshot\cache\longshot-builder. Directly starting a builder inside a marked portable launcher uses its sibling data and cache folders. Preparation and play share the same shader store, and a named cache takes precedence over the machine’s older shader cache. Existing populated portable profiles and caches remain usable in place, including older per-user caches and shader packs. Explicit profile, cache and shader settings retain precedence.Testing
Tested on Linux with isolated temporary data and cache directories. 252 tests passed across build-driver and longshot-builder. I also ran the built executable’s
infocommand against three synthetic setups and verified that it selected the fresh XDG profile, an explicitly requested profile, and an existing portable profile.The patched standalone builder launched an isolated copy of the installed game on Linux with an NVIDIA GeForce RTX 3090, driver 620.70.06. I verified the live game window and checked the child process received the fresh XDG profile and shader store paths. No prior save was used. Clippy passed with warnings denied.
Tested on the current head: All 269 tests across build-driver, longshot-builder and Steam passed on Linux. The portable profile regression failed on the previous revision and passed on this one. Clippy passed with warnings denied. The Windows GNU target compiled with all targets. XDG tests cover relative paths during profile, cache, Steam library and Vulkan manifest discovery.
Still to test Windows runtime behavior and the repository-wide suite on this revision.
Measurements
The change selects folders during startup. It adds no rendering or compilation work. The tests compare the resolved paths directly.
Risks
A populated portable profile intentionally keeps priority over the shared profile. Players who want another profile can select it with
--profile. Existing shader packs are reused in place to preserve their indices.Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named).main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
mainand passes here.gpu/vk/switches.def.tests/that reads changed source is updated, not weakened.MKWVK_API_VERSIONbumped (MkwVkHostorMkwVkRendereringpu/vk/vk_api.hchanged).mainand here, for a change that shows on screen.Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.Tested in game: Linux, NVIDIA GeForce RTX 3090, driver 620.70.06. The patched standalone builder launched an isolated copy of Longshot on a private X display with an empty user profile. The running game window belonged to the installed engine and its process used the expected XDG profile and shader store directories.
Possibly related, for context:
WIP: fix(builder): share Linux defaults with Longshot Launcherto WIP: fix(builder): share installed and portable launcher foldersWIP: fix(builder): share installed and portable launcher foldersto fix(builder): share installed and portable launcher folders