flatpak/flatpak-add-fedora-repos.service
Kalev Lember 527512aa12 Add a oneshot systemd service to add Fedora flatpak repos
This adds a systemd service that is type=oneshot and adds fedora and
fedora-testing (disabled by default) flatpak repos. Various bugs around
/etc/flatpak/remotes.d/ handling make it difficult to use right now,
which would otherwise have been a much saner alternative.

See https://github.com/flatpak/flatpak/issues/2508 and
https://github.com/flatpak/flatpak/issues/1665 for the remotes.d issues.
2019-04-04 17:55:42 +02:00

15 lines
582 B
Desktop File

[Unit]
Description=Add Fedora flatpak repositories
ConditionPathExists=!/var/lib/flatpak/.fedora-initialized
Before=flatpak-system-helper.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/flatpak remote-add --system --if-not-exists --title "Fedora" fedora oci+https://registry.fedoraproject.org
ExecStart=/usr/bin/flatpak remote-add --system --if-not-exists --disable --title "Fedora (testing)" fedora-testing oci+https://registry.fedoraproject.org#testing
ExecStartPost=/usr/bin/touch /var/lib/flatpak/.fedora-initialized
[Install]
WantedBy=multi-user.target