Files
fluffy-pancake/configs/flatpak-preinstall.service
T

20 lines
736 B
Desktop File
Raw Normal View History

[Unit]
Description=Flatpak Bazaar Installation on First Boot
After=network-online.target
Wants=network-online.target
ConditionPathExists=!/var/lib/flatpak/.preinstall-done
[Service]
Type=oneshot
# 1. Sicherstellen, dass Flathub wirklich als Quelle registriert ist
ExecStartPre=/usr/bin/flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
# 2. Bazaar nativ installieren (-y bestätigt alles automatisch)
ExecStart=/usr/bin/flatpak install -y flathub io.github.kolunmi.Bazaar
# 3. Aufräumen und deaktivieren
ExecStartPost=/usr/bin/touch /var/lib/flatpak/.preinstall-done
ExecStartPost=/usr/bin/systemctl disable flatpak-preinstall.service
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target