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
- Install your flatpak applications, set some permissions
- 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
- Add your flatpak sync configuration file to your desktop
- Run
flatpak-sync run
- 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
Built Distribution
File details
Details for the file flatpak-sync-1.0.1.tar.gz
.
File metadata
- Download URL: flatpak-sync-1.0.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f059d99b01fa03c27efd25c48c8f1768e96b9a00ee2d71bda52123502cddbd9b |
|
MD5 | 3f2d4154292c81517b31674340590b88 |
|
BLAKE2b-256 | 460c6e065e94dca13adfca6b67afac9661e27922d5c8f53084e975aaa480df39 |
File details
Details for the file flatpak_sync-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: flatpak_sync-1.0.1-py3-none-any.whl
- Upload date:
- Size: 19.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 021da9f862773a490ecd79e3bc7183ce25cf64756a07f6c2679ba0c00d66c6c1 |
|
MD5 | 51f3932913453968c0dd93e3e4c9bdf6 |
|
BLAKE2b-256 | 612c513bb9b6ee3881c7e457fd29a375d2ebf1f89827c5e25352074987826210 |