# Flatpak
Software packaging system that is available on all linux distributions and runs the software in a isolated (given access where needed) environment.

## Setup
You can follow the instructions to set it up for your distro from here, which includes installing flatpak, and adding the flathub repository https://flatpak.org/setup/

### KDE Plasma
**Note:** Flatpak comes already setup on Fedora

In plasma you can setup flatpak through the Discover app:

First in settings, scroll to the bottom and click the install button next to the "Integrates Flatpak applications into Discover"

**Make sure to not select the one for Snap**

![Flatpak Install Button](Screenshots/flatpak-install.png)

Now **close and re-open Discover**, navigate back to settings and you should have the option to add Flathub, click that.

![Add Flathub](Screenshots/flatpak-flathub.png)

Then **log out** and back in (or restart), you should now see this in setting and you will also find flatpak software when searching discover.

![Flatpak setup](Screenshots/flatpak-setup.png)

## Usage

There are a number of Graphical Applications that let you browse, install and remove flatpak software:

1. Discover
   - The software manager for KDE Plasma
2. GNOME Software
   - The software manager for GNOME, can be installed on other Desktop Environments
3. [Bazaar](https://flathub.org/en/apps/io.github.kolunmi.Bazaar)
   - Flatpak manager
   - Can be installed with `flatpak install io.github.kolunmi.Bazaar` once flatpak is setup

## Permissions
By default flatpak programs are only given access to the systems and files they need to function. Sometimes you may need to adjust what it has access to though.

The easiest way to do so is to use the [Flatseal](https://flathub.org/en/apps/com.github.tchx84.Flatseal) program, which is easy to install with flatpak.
