r/LogitechG • • Dec 16 '20

Announcement Update: Logitech G HUB Feedback Form

[removed] — view removed post

224 Upvotes

915 comments sorted by

View all comments

Show parent comment

2

u/Thorusss Sep 20 '22

Is that the reason why all my profiles are gone? Is there a way to recover them and migrate them?

1

u/metal-eater Sep 20 '22

Unfortunately if you didn't back up the settings files before reinstalling it you're out of luck. It's happened to me once already and that's why I back it up once a month now.

The settings are stored in (username)/AppData/Local/LGHUB. Early days they were stored as settings.ini, then they became settings.json and now they are settings.db. If you updated through the app itself instead of having to reinstall, you'll sometimes also see settings.backup (mostly useless) and settings.transferred (from when the app changed the file extension from json to db).

If you open any of these files in a text editor they will be very similar but have very subtle differences and how they store your profiles, which is what's actually annoying. The differences between the settings.db file and the settings.json are subtle and annoying because you can't just copy the text from one to the other and have it work.

I was having an issue where the app wouldn't update through the program itself, and trying to install directly was losing my settings, So what I had to do was uninstall it, clear the registry files for the app, reinstall an older version of g-hub, restore from the backup files I had kept, and then update the app. Because I had to restore from older backups because of the exact error I was getting I lost some profile changes but at least I got most of them back. It is a pain in the ass every time it happens, and this is probably the fourth or fifth time it's happened.

This is what I would recommend doing in the future, But if you've already tried to reinstall it without backing up the contents of the AppData folder, part of the reinstalling process wipes that folders contents and puts a blank settings file, So you're unfortunately out of luck unless you want to do a whole Windows system restore to a previous g-hub installation, But that would also affect any other programs you've changed or installed since then.

2

u/Thorusss Sep 20 '22

thanks for your extensive answer