LiveSplitOne icon indicating copy to clipboard operation
LiveSplitOne copied to clipboard

(Desktop) Hotkey settings partially resetting upon program start

Open appleforyou opened this issue 1 year ago • 3 comments

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.

appleforyou avatar Oct 28 '24 21:10 appleforyou

I have a suspicion that this might be related to https://github.com/LiveSplit/livesplit-core/issues/815

AlexKnauth avatar Oct 28 '24 21:10 AlexKnauth

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.

AlexKnauth avatar Oct 28 '24 22:10 AlexKnauth

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.

appleforyou avatar Oct 31 '24 21:10 appleforyou