Open davidak opened 1 year ago
Updated to nix-software-center 0.1.2 on NixOS 22.11.4588.93fddcf640c.
To improve UX, the GUI should show the error and not pretend to be loading.
The GUI now shows an error dialog and don't pretend to be loading.
In terminal i see:
ERROR nix_software_center::ui::windowloading > Error getting pkglist: error returned from database: (code: 11) database disk image is malformed
What database does it mean and where is it?
Monitor says it's /home/davidak/.cache/nix-data/nixospkgs.db
and two other related files.
I guess to fix it, i have to delete the database and let it create a new one.
After deleting the files, the GUI said "Loading..." again, created the files and now it works!
rm /home/davidak/.cache/nix-data/nixospkgs.db*
Such a fix can also be shown in the GUI. Maybe have a button "Delete and create new database".
I think that would be the best solution. Signal does something similar in this case.
I installed the new version with the new instructions for NixOS 22.11 (https://github.com/vlinkz/nix-software-center/pull/36/files).
The GUI is stuck on loading and i get an error in terminal.
To improve UX, the GUI should show the error and not pretend to be loading.
Also, such an error should not happen. It's fine while it's not a stable release, but annoying for users.
I guess to fix it, i have to delete the database and let it create a new one. What database does it mean and where is it? Such a fix can also be shown in the GUI. Maybe have a button "Delete and create new database".