Skip to content

move settings files to app dir in any case#907

Merged
Josef-Haupt merged 5 commits into
mainfrom
906-gui-does-not-work-in-read-only-filesystem
May 14, 2026
Merged

move settings files to app dir in any case#907
Josef-Haupt merged 5 commits into
mainfrom
906-gui-does-not-work-in-read-only-filesystem

Conversation

@Josef-Haupt
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 14, 2026 17:36
@Josef-Haupt Josef-Haupt linked an issue May 14, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR relocates GUI-related settings/state/error-log files into a per-user application directory consistently (not only in frozen builds), and adjusts error logging to use the new location.

Changes:

  • Remove ERROR_LOG_FILE from birdnet_analyzer.config and define GUI-specific ERROR_LOG_FILE in birdnet_analyzer.gui.settings.
  • Update GUI settings/state file paths to always live under the user app directory.
  • Route runtime error logging through birdnet_analyzer.gui.settings.write_error_log and update GUI UI references to the new error-log path.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

File Description
birdnet_analyzer/utils.py Removes legacy error-log helpers and redirects runtime error logging to GUI settings’ writer.
birdnet_analyzer/gui/utils.py Updates error-log UI display/readback to use settings.ERROR_LOG_FILE.
birdnet_analyzer/gui/settings.py Defines app dir, settings/state/error-log paths under it, and implements write_error_log.
birdnet_analyzer/config.py Removes the global ERROR_LOG_FILE constant.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread birdnet_analyzer/utils.py
Comment thread birdnet_analyzer/utils.py
Comment thread birdnet_analyzer/settings.py Outdated
@Josef-Haupt Josef-Haupt merged commit e37a6f8 into main May 14, 2026
7 checks passed
@Josef-Haupt Josef-Haupt deleted the 906-gui-does-not-work-in-read-only-filesystem branch May 14, 2026 19:40
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.

GUI does not work in read-only filesystem

2 participants