Skip to content

hotfix: application settings not persisting on restart#62

Closed
marlexx wants to merge 1 commit into
ubavic:v2from
marlexx:hotfix-setting-persistence
Closed

hotfix: application settings not persisting on restart#62
marlexx wants to merge 1 commit into
ubavic:v2from
marlexx:hotfix-setting-persistence

Conversation

@marlexx

@marlexx marlexx commented Jun 3, 2026

Copy link
Copy Markdown

The GUI used app.New() so Fyne had no stable application ID for storing preferences.
Preferences are scoped by app ID, so without a fixed ID saved settings were not applied after restart.

The fix was tested locally

@ubavic

ubavic commented Jun 3, 2026

Copy link
Copy Markdown
Owner

Hi,
thanks for reaching :)

Can you add more information about the OS where you found this problem?

As per Fyne documentation, app.New uses ID from the .toml file in the project root. In last three years this setup worked without any issues (at least on Linux and Windows).

It is possible that latest version of Baš Čelik introduced the bug, or even that bug is introduced in the Fyne. I will check this weekend, I am currently away from home.

FyneApp.toml was missing from the packaged releases, preventing Fyne from
reading the app ID at runtime. This caused preferences to not persist
across restarts since the app had no stable identifier.

Now FyneApp.toml is included in /usr/bin/ so Fyne can find it when the
app is launched from the installed location.
@marlexx marlexx force-pushed the hotfix-setting-persistence branch from d15d97a to 042fb0a Compare June 3, 2026 15:58
@marlexx

marlexx commented Jun 3, 2026

Copy link
Copy Markdown
Author

Hi,
I'm using Linux Mint 22.3 - Cinnamon 64-bit

Thanks for the tip, I undid the initial commit in this PR and replaced it with a better solution.
I used the deb installation and the deb and rpm packaging yaml-s did not have the toml file included.

ubavic added a commit that referenced this pull request Jun 14, 2026
ubavic added a commit that referenced this pull request Jun 14, 2026
ubavic added a commit that referenced this pull request Jun 14, 2026
@ubavic

ubavic commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Problem was that application for fedora and debian packaging was compiled without the fyne tool. I now fixed that. Thank you for reporting this.

@ubavic ubavic closed this Jun 14, 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.

2 participants