Gajim XMPP installation

Using Flatpak

# Install Gajim from flathub.org

You need `flatpak` installed, follow the instructions [here](https://flatpak.org/setup/).

Afterwards install Gajim directly from [Gajim's flathub.org page](https://flathub.org/apps/details/org.gajim.Gajim) or via CLI.

```
flatpak install flathub org.gajim.Gajim
```

# Plugins

Install plugins via CLI. Currently there are three plugins are available for flatpak installs: OMEMO, PGP, and URL Image Preview.

```
flatpak install flathub org.gajim.Gajim org.gajim.Gajim.Plugin.omemo
flatpak install flathub org.gajim.Gajim org.gajim.Gajim.Plugin.url_image_preview
flatpak install flathub org.gajim.Gajim org.gajim.Gajim.Plugin.pgp
```

Note that **you need to restart Gajim** for Plugins to be enabled.

# Migrate your data

When switching to flatpak you might want to migrate your user data (accounts, history, ...) from your previous installation. Just copy your user data from/to the following directories:

Copy `.local/share/gajim` -> `.var/app/org.gajim.Gajim/data/gajim`

Copy `.config/gajim` -> `.var/app/org.gajim.Gajim/config/gajim`
Install Gajim via [Flatpak](https://dev.gajim.org/gajim/gajim/tree/master/flatpak).

source: gajim