-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(linux): Use XDG_STATE_HOME to storage logs #1675
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This logger is kind of deprecated, the new logger that is used accorss the codebase is in lib/services/logger/logger.dart
Ah, I found that there are some differences between |
This comment was marked as outdated.
This comment was marked as outdated.
Try with flutter 3.19.x We've not yet updated to flutter 3.22.x |
Nevermind, I cleaned .dart_tool folder and rebuilt everything, finally this problem was gone. |
The latter seems return an empty string. See: flutter/flutter#55870 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
We storage logs at
~/Documents/.spotube_logs
on Linux currently, this does not follow XDG specification. XDG specification is used by many modern GUI apps to storage data on Linux.