This is a small python tool to extract the json file stored inside the "settings.db" file of the Logitech G Hub app. This allows you to update the json and then replace the file blob inside the db with the new json.
My Ghub profile was corrupted.
I have a backup "\AppData\Local\LGHUB" but Ghub keeps giving me error "Unable to save changes. An unknown error occured"
When I run this py script (with my backup db), I get error "Failed to read blob data from sqlite table database disk image is malformed"
Is there anyway to transfer my settings from my backup settings.db over to Ghub?
Now that I've used this script to extract a JSON file per the README, how do I import the JSON file into a new installation of Logitech GHUB? Could this info be added to the README?
The G Hub settings.db database won't update when using G Hub 2024.6.6 on Windows 11. I used your code in my project, WoW Lights a couple of years ago. I'm updating WoW Lights now and things are fine on MacOS. But on testing Windows the changes I try to make in G Hub are ignored. First issue: quitting G Hub isn't enough anymore; the lghub agent holds the database open too; I was able to force-quit that. But, second issue: the database now has settings.db-wal and settings.db-shm files which indicate Logitech is using write-ahead logging and shared memory features in Sqlite. I think this breaks your code. Any suggestions, please?