macOS support: file-manager buttons, settings folder, memory budget #2
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!2
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2/head"
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?
@vladbondarenko97 on GitHub · 2026-11-21 21:33 UTC · original
vladbondarenko97:macos-support→master· +166 −24 · 13 files · 4 commits · merged 2026-11-21 21:41 UTCSixNG already builds and runs on macOS (Apple Silicon, Rust 1.100,
brew install cmake); the GUI renders through Metal. Three things were Windows-only:File-manager buttons: every Show in Explorer / Open / Show / Open output folder button ran
explorer.exe(audio view usedxdg-openon macOS). They now go throughopen_path/revealinsixng-gui/src/main.rs:explorer(/select,) on Windows,open/open -Ron macOS,xdg-openon Linux. The label names the platform's file manager (Explorer / Finder / file manager).Settings fallback: when the folder next to the exe is not writable the GUI fell back to
%APPDATA%only, and failed elsewhere. Newsixng_core::user_settings_dir():%APPDATA%\SixNGon Windows (unchanged),~/Library/Application Support/SixNGon macOS,$XDG_CONFIG_HOME/SixNGor~/.config/SixNGelsewhere. Used by both the CLI and the GUI.Map memory budget:
mem::query()returnedprocess = 0, avail = 8 GBon non-Windows, so the 3D map streamer never saw pressure and never evicted. On macOS it now readshw.memsize,kern.memorystatus_level(percent of RAM available) and the process physical footprint (proc_pid_rusage, the figure Activity Monitor shows).libcwas already inCargo.lock; it is added only as a macOS target dependency.scripts/macos-app.shbuildsdist/SixNG.app(GUI + CLI, icon fromassets/logo, ad-hoc signed, not notarised). Inside a.appthe GUI keeps settings and the default work folder in~/Library/Application Support/SixNGrather than next to the exe, since writing into a bundle breaks its signature. Plain binaries behave as before (portable, next to the exe).Plus a short macOS section in the README.
Windows code paths are unchanged (same commands and arguments).
Tested on macOS 27 / Apple Silicon:
cargo build --releaseclean,cargo test --releasepasses (two new tests: settings dir, and macOS memory figures cross-checked againstsysctl: 48 GB total, ~32 GB available), CLIinfo/index/liston a real install, GUI starts;SixNG.applaunches from Finder and its setup wizard defaults the work folder to~/Library/Application Support/SixNG/work. Not built on Windows (no Windows machine here).🤖 Generated with Claude Code