527512aa12
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.
15 lines
582 B
Desktop File
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
|