Skip to content

Enhance tray properties persistence on macOS - #247

Merged
kdroidFilter merged 1 commit into
masterfrom
fix-246
Aug 12, 2025
Merged

Enhance tray properties persistence on macOS#247
kdroidFilter merged 1 commit into
masterfrom
fix-246

Conversation

@kdroidFilter

Copy link
Copy Markdown
Collaborator

  • What has been fixed/modified:
    • Introduced a fallback to the macOS user cache (~/Library/Caches/ComposeNativeTray/<appId>) for tray properties persistence when the default tmp directory is unavailable or unwritable.
    • Improved exception handling in saveTrayClickPosition and setClickPosition to enhance I/O resilience.
    • Maintained compatibility with legacy tmp and working directory locations for backward support of property reads.

- Enhanced tray properties persistence by introducing a fallback to macOS user cache (`~/Library/Caches/ComposeNativeTray/<appId>`) when the default tmp directory is unavailable or unwritable.
- Improved I/O resilience in `saveTrayClickPosition` and `setClickPosition` with exception handling via `runCatching`.
- Maintained backward compatibility with legacy tmp and working directory locations for property reads.
@kdroidFilter
kdroidFilter merged commit 827f5f2 into master Aug 12, 2025
@kdroidFilter
kdroidFilter deleted the fix-246 branch August 25, 2025 22:21
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