Migrate from appimage to flatpak

Can I switch from the AppImage to the flatpak version? I just

  • Close the (working) AppImage version 33.6, and
  • Opened the Flatpak version

It asked for server url, login and password. Are these data not shared among Nextcloud desktop client?

Operating System: Fedora Linux 44
KDE Plasma Version: 6.7.0
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1
Kernel Version: 7.0.12-201.fc44.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-7700K CPU @ 4.20GHz
Memory: 16 GiB of RAM (15.5 GiB usable)
Graphics Processor: AMD Radeon RX Vega

I’d say that’s because Flatpaks store their configs under ~/.var/app.

With AppImages, I guess it depends on the application, but most of them probably use ~/.config, like distro packages.

can this be migrated? I like the AppImage but updating is a manual.

I deleted my previous post because I had accidentally described the migration from Flatpak to AppImage instead of the other way around. :man_facepalming:

But on the bright side, I now know that it works both ways. :slight_smile:

Here’s how to migrate from the AppImage to the Flatpak version:

  1. Quit the AppImage client.

  2. Install the Flatpak version. (It may start automatically; if not, launch it once, but don’t log in yet.)

  3. Delete the contents of ~/.var/app/com.nextcloud.desktopclient.nextcloud/config/Nextcloud/. (only the contents, not the directory itself).

  4. Copy the contents of ~/.config/Nextcloud/ to ~/.var/app/com.nextcloud.desktopclient.nextcloud/config/Nextcloud/.

  5. Restart the Flatpak client. You may need to authenticate in your browser again; if prompted, simply do so.

  6. Delete the Nextcloud.desktop file from ~/.config/autostart/ so that the AppImage client no longer starts automatically at login.

And here’s how to migrate from the Flatpak version back to the AppImage as well, in case you ever want to switch back. (And because I’d already done all the work anyway. :wink:)

  1. Quit the Flatpak client.

  2. Remove the Flatpak:

    flatpak remove com.nextcloud.desktopclient.nextcloud
    

    (Alternatively, you can uninstall it via GNOME Software or KDE Discover. If you do, make sure not to delete the configuration when prompted.)

  3. Start the AppImage once, then quit it again.

  4. Delete the contents of ~/.config/Nextcloud (only the contents, not the directory itself).

  5. Copy the contents of ~/.var/app/com.nextcloud.desktopclient.nextcloud/config/Nextcloud/ to ~/.config/Nextcloud/.

  6. Start the AppImage again.

Or you can do the whole thing in one go using the command line:

flatpak kill com.nextcloud.desktopclient.nextcloud
flatpak remove com.nextcloud.desktopclient.nextcloud -y
rm -rf ~/.config/Nextcloud
cp -a ~/.var/app/com.nextcloud.desktopclient.nextcloud/config/Nextcloud/. ~/.config/Nextcloud/