flatpak-sync
Automate the installation Flatpak Repositories, Applications and Permissions
Requirements
- Flatpak (
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
Usage
First Step
Install some flatpak applications, change some permissions. When you're happy, run the following command to generate a configuration file.
flatpak-sync generate -v
Now Sync
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 (
$HOME/.config/flatpak-sync/flatpak.json) - Run
flatpak-sync run -v - Done! Flatpak Repositories are setup, applications are installed and permissions are set.
Commands
Add an Application to your configuration file. This also copies user permissions.
flatpak-sync add <repo> <app-id>
flatpak-sync add --help
eg.
flatpak-sync add flathub com.spotify.Client
Remove an Application from syncing.
flatpak-sync remove <repo> <app-id>
flatpak-sync remove --help
eg.
flatpak-sync remove flathub com.spotify.Client
Create a configuration file of existing flatpak repositories, applications and permissions.
flatpak-sync generate
flatpak-sync generate --help
Install flatpak applications and configure permissions (Sync)
flatpak-sync run
flatpak-sync run --help
Recommendations
Chezmoi
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
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
I think this feature should be added. How do I get it added?
Create an issue here on github.
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
Metadata
Release files for flatpak-sync 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flatpak-sync-1.0.3.tar.gz | 11.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flatpak_sync-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.2 kB
Release files / flatpak-sync-1.0.3.tar.gz
| Download URL | flatpak-sync-1.0.3.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eaeb8297068673429bdf2f2f1391ad381e67c1f790a61fab8101ed4a562fda04
|
|
BLAKE2b-256 checksum How to use checksums |
8b2089c3eb07d70d0df67fb6a02031a6b97437cd40fa46f8efb087545ed090ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / flatpak_sync-1.0.3-py3-none-any.whl
| Download URL | flatpak_sync-1.0.3-py3-none-any.whl |
|---|---|
| Size | 20.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d0cad7fd19f6f02c0ddfaf99d91e2b0c4415741296aa77dedc900db8085e9af8
|
|
BLAKE2b-256 checksum How to use checksums |
92ef3d239f26f90efd73206c3c1f8e8f817227b30b313a7d657b0673498317b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|