Skip to main content

Automate Installation and Permissions of Flatpak Applications

Project description

flatpak-sync

Automate Flatpak Application Installation and Permissions

Requirements

  • Flatpak 1.4 or greater flatpak --version
  • Python 3.5 or greater python --version
  • PIP installed pip --version

How to Install Flatpak on your distro

How to Install

After verifying you have Python 3 and pip module manager installed, use the following command to install.

pip install --user flatpak-sync

Basic Usage

After you've installed flatpak on your distro

  1. Install your flatpak applications, set some permissions
  2. Generate a flatpak sync configuration file flatpak-sync generate

Okay, you have to setup a new computer. After installing your distro, take your configuration file and just run flatpak-sync

  1. Add your flatpak sync configuration file to your desktop
  2. Run flatpak-sync run
  3. Done!

Commands

Add an Application to your configuration file

flatpak-sync add <repo> <app-id>
flatpak-sync add flathub com.spotify.Client

Remove an Application

flatpak-sync remove <repo> <app-id>
flatpak-sync remove flathub com.spotify.Client

Create a list of existing flatpak applications and permissions

flatpak-sync generate

Install flatpak applications and configure permissions (Sync)

flatpak-sync run

Recommendations

Chezmoi is a command line tool to easily manage your dotfiles with git. https://github.com/twpayne/chezmoi https://fedoramagazine.org/take-back-your-dotfiles-with-chezmoi/

Flatseal is a GUI application that makes adding permissions to your flakpak applications easy. https://flathub.org/apps/details/com.github.tchx84.Flatseal https://www.omgubuntu.co.uk/2020/02/flatseal-manage-flatpak-permissions

Bug Reports

Creae an issue and post these things

  • Distro (hostnamectl)
  • Flatpak version (flatpak --version)
  • Flatpak-sync configuration file (~/.config/flatpak-sync/flatpak.json) file

Questions

Is there a list of common flatpak repositories?

Yes, they can be found here.

Can I add a repository?

Yes, create a Pull Request.

Where is the flatpak sync configuration file stored?

$HOME/.config/flatpak-sync/flatpak.json

Where can I see an example configuration file?

Here is an example configuration file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flatpak-sync-1.0.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

flatpak_sync-1.0.0-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

Details for the file flatpak-sync-1.0.0.tar.gz.

File metadata

  • Download URL: flatpak-sync-1.0.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for flatpak-sync-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5ca682fb88a9e45f60749f1cc3c6aec049a859c7dfa0f4af5b66040262384b61
MD5 38323d0c78a1192134f59a726a1f95e3
BLAKE2b-256 75dae4353e8c1f464665538a0fd7d6ed60ac564243ade621a5155f251b8ce6f1

See more details on using hashes here.

File details

Details for the file flatpak_sync-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: flatpak_sync-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 29.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for flatpak_sync-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 141f0890f95aac2b558269b9ce40a79d4f97f883530026078d7b58e265f933f0
MD5 277cfde431084b767e9ae7bcc6529c6b
BLAKE2b-256 ee91ff295a5fbef4461cd28349f42873120a183761f80c9419f7c5e705e1dea2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page