[Feat. Req.] the launcher should use a standard dir for cached mods and login

Open
#281 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
desktop

Research direction

The payload names no source files, so start by finding where the launcher sets the login key and mod cache paths, probably in its C++ sources. The issue proposes ~/.config and ~/.cache on Linux, and AppData\Local and AppData\Local\Temp on Windows. Done means both files go to those per-platform locations, and the two comments should be read first to see whether the paths are settled.

Written by the indexing model from the issue text.

Description

currently the cached mods and login are just put in the current working directory, which isn't great. it's intended to put them in the same directory as the executable, but can shift around at times. on top of that, it's also bad practice and prevents it from working when installed to a limited permission directory (like /usr/bin on linux).

i suggest having it use ~/.config for the login key and ~./cache for the mod cache on linux, C:\Users\USER\AppData\Local for the login key and C:\Users\USER\AppData\Local\Temp for the mod cache on windows. this also solves needing to manually clear out the mod cache (on windows, at least), since windows will clear data out in here when it's low on space or when triggered to clean temp files.

Dominant language
C++
Stars
74
Forks
93
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BeamMP/BeamMP-Launcher

All issues in BeamMP/BeamMP-Launcher

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.