Skip to content
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

(Desktop) Hotkey settings partially resetting upon program start #987

Open
appleforyou opened this issue Oct 28, 2024 · 3 comments
Open

Comments

@appleforyou
Copy link

appleforyou commented Oct 28, 2024

I'm using Livesplit One's desktop version on Gentoo Linux.

When I open the program for the first time, I unbind all hotkeys, and then set my hotkeys to the following:
Start/stop: Down Arrow
Reset: Numpad 2
Undo: Numpad 4
Skip: Numpad 6
Pause: Numpad 8

This works as expected while the program is running. But the next time I open the program, my hotkeys will change to:
Start/stop: Down Arrow
Reset: Numpad 2
Undo: Numpad 8
Skip: Numpad 2
Pause: Numpad 5
Previous Comparison: Numpad 4
Next Comparison: Numpad 6

And unlike before, this time even if I change the settings here, they will not be saved when I hit "OK."
Other settings, such as disabling "always on top," seem to be saved correctly.
Splits and layout are also mostly remembered on reopening the program (window size is not saved.)

I located what seems to be Livesplit One's config file location (~/.local/share/org.livesplit.one/databases/indexeddb/v1/tauri_localhost_0/[numbers]/
If I delete all files in this directory, then the settings (and splits/layout) will reset and I will be able to temporarily have the correct keybindings until I next close the program, but since I'll have to resize the layout and such every time, this is obviously not ideal.

@AlexKnauth
Copy link

I have a suspicion that this might be related to LiveSplit/livesplit-core#815

@AlexKnauth
Copy link

I see 2 possible solutions. Either fix set_config so that it doesn't do this bad-merging thing, or avoid calling set_config in LiveSplitOne entirely: create the hotkey system with the correct hotkey config from the start.

@appleforyou
Copy link
Author

appleforyou commented Oct 31, 2024

Is it possible for me to build the desktop version so that I can address this issue locally? The web version isn't an option because I will need global hotkeys.

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

No branches or pull requests

2 participants