Repository navigation
fix: read QQ Music login plist outside the sandbox container - #12
Merged
fjd2004711 merged 1 commit intoOct 28, 2026
Merged
Conversation
QQ Music for Mac 11.x is no longer sandboxed and stores its preferences in ~/Library/Preferences instead of the app container, so credential detection reported qqmusic_not_found. Check both locations and prefer the most recently modified file when both exist.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
QQ Music for Mac 11.x (tested on 11.10.5) is no longer sandboxed. It writes its preferences, including
AutoLoginUserInfo, to~/Library/Preferences/com.tencent.QQMusicMac.plist. QM Unlock only looked in the old sandbox container (~/Library/Containers/com.tencent.QQMusicMac/Data/Library/Preferences/...), so a logged-in user gotqqmusic_not_found.This change:
~/Library/Preferences(11.x). This follows the candidate-path approachqq_library::database_pathalready uses.qmunlock/credentials.py).Verification
Platform: macOS 27.2 (arm64), QQ Music 11.10.5
npm run buildcargo fmt --manifest-path src-tauri/Cargo.toml --checkcargo clippy --manifest-path src-tauri/Cargo.toml --all-targets -- -D warningscargo test --manifest-path src-tauri/Cargo.toml: added tests for fallback, newest-file selection and not-found reportingpython3 -m pytest tests/ -qcredentials::status()now returnsready; before the change it returnedqqmusic_not_found. Built the.applocally and decrypted a real.mflacend to end into valid FLAC.Privacy check