Skip to content

Fix GetApplicationDirectory() platform detection - #5

Merged
yetanotherchris merged 1 commit into
mainfrom
fix/macos-application-directory
Jan 20, 2026
Merged

yetanotherchris merged 1 commit into
mainfrom
fix/macos-application-directory

Conversation

@yetanotherchris

Copy link
Copy Markdown
Owner
  • Switch from PlatformID to RuntimeInformation.IsOSPlatform() for consistent OS detection with BrowserKnownPaths.cs
  • Add proper macOS support using ~/Library/Application Support/tinycity
  • Use Environment.GetFolderPath instead of environment variables for Windows LocalApplicationData path
  • The old PlatformID.MacOSX was never triggered on modern .NET as macOS reports as PlatformID.Unix

- Switch from PlatformID to RuntimeInformation.IsOSPlatform() for
  consistent OS detection with BrowserKnownPaths.cs
- Add proper macOS support using ~/Library/Application Support/tinycity
- Use Environment.GetFolderPath instead of environment variables for
  Windows LocalApplicationData path
- The old PlatformID.MacOSX was never triggered on modern .NET as macOS
  reports as PlatformID.Unix

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@yetanotherchris
yetanotherchris merged commit 30091c6 into main Jan 20, 2026
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