With the move to flatpak packaging and deprecation of rpm and deb packaging, there's a simple process you must perform if you want to retain your database and settings from a previous rpm or deb install when you move over to the new flatpak versions.
Flatpak packages store their configuration and app data in a different location than traditional OS package based installs. This is done to sandbox each app away from everything else.
But not to worry, all we have to do is simply copy the existing files to the locations that the flatpak expects to find them.
Step 1 - If you haven't already done so uninstall OpenKJ via apt or yum/dnf, then install the OpenKJ flatpak from flathub.
Step 2 - Run OpenKJ from the flatpak and just immediately close it. We're just running it so it'll generate the default db and config files and paths.
Step 3 - After you close OpenKJ, open a terminal and issue the following commands:
cp ~/.local/share/OpenKJ/OpenKJ/openkj.sqlite ~/.var/app/org.openkj.OpenKJ/data/OpenKJ/OpenKJ/openkj.sqlite cp ~/.config/OpenKJ/OpenKJ.conf ~/.var/app/org.openkj.OpenKJ/config/OpenKJ/OpenKJ.conf
Step 4 - Go ahead and launch the newly installed flatpak OpenKJ version again. All of your settings and database data should be there from your previous install.
If you have any problems, don't hesitate to reach out to [email protected]