Skip to content

Commit 7f07ae7

Browse files
committed
fix: add flathub
1 parent 84a742f commit 7f07ae7

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

build/0_base.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ dnf -y install \
4141
wl-clipboard \
4242
zsh
4343

44+
# flatpak
45+
46+
mkdir -p /etc/flatpak/remotes.d/
47+
curl --retry 3 -Lo /etc/flatpak/remotes.d/flathub.flatpakrepo https://dl.flathub.org/repo/flathub.flatpakrepo
48+
mv -f /usr/lib/systemd/system/enable-flathub.service /usr/lib/systemd/system/flatpak-add-fedora-repos.service
49+
4450
# podman
4551

4652
mkdir -p /etc/containers
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[Unit]
2+
Description=Add Flathub flatpak repositories.
3+
ConditionPathExists=!/var/lib/flatpak/.flathub-added
4+
Before=flatpak-system-helper.service
5+
6+
[Service]
7+
Type=oneshot
8+
RemainAfterExit=yes
9+
ExecStart=/usr/bin/flatpak remote-add --system --if-not-exists flathub /etc/flatpak/remotes.d/flathub.flatpakrepo
10+
ExecStart=/usr/bin/flatpak remote-add --system --if-not-exists --disable --title "Fedora Flatpaks" fedora oci+https://registry.fedoraproject.org
11+
ExecStart=/usr/bin/flatpak remote-add --system --if-not-exists --disable --title "Fedora Flatpaks (testing)" fedora-testing oci+https://registry.fedoraproject.org#testing
12+
ExecStartPost=/usr/bin/touch /var/lib/flatpak/.flathub-added
13+
14+
[Install]
15+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)