feat: enable bazaar flatpak (#1157)
* feat: enable bazaar flatpak * feat: autostart flatpak bazaar service This will replace the systemd service provided by the rpm * feat: enable backported flatpak for non-beta images --------- Co-authored-by: inffy <10782843+inffy@users.noreply.github.com>
This commit is contained in:
parent
e23fd2514c
commit
db2e21a6ae
3 changed files with 22 additions and 13 deletions
|
|
@ -179,15 +179,12 @@ dnf5 -y swap \
|
|||
fwupd fwupd
|
||||
|
||||
# TODO: remove me on next flatpak release when preinstall landed
|
||||
if [[ "${UBLUE_IMAGE_TAG}" == "beta" ]]; then
|
||||
dnf5 -y copr enable ublue-os/flatpak-test
|
||||
dnf5 -y copr disable ublue-os/flatpak-test
|
||||
dnf5 -y --repo=copr:copr.fedorainfracloud.org:ublue-os:flatpak-test swap flatpak flatpak
|
||||
dnf5 -y --repo=copr:copr.fedorainfracloud.org:ublue-os:flatpak-test swap flatpak-libs flatpak-libs
|
||||
dnf5 -y --repo=copr:copr.fedorainfracloud.org:ublue-os:flatpak-test swap flatpak-session-helper flatpak-session-helper
|
||||
# print information about flatpak package, it should say from our copr
|
||||
rpm -q flatpak --qf "%{NAME} %{VENDOR}\n" | grep ublue-os
|
||||
fi
|
||||
dnf5 -y copr enable ublue-os/flatpak-test
|
||||
dnf5 -y copr disable ublue-os/flatpak-test
|
||||
dnf5 -y --repo=copr:copr.fedorainfracloud.org:ublue-os:flatpak-test swap flatpak flatpak
|
||||
dnf5 -y --repo=copr:copr.fedorainfracloud.org:ublue-os:flatpak-test swap flatpak-libs flatpak-libs
|
||||
dnf5 -y --repo=copr:copr.fedorainfracloud.org:ublue-os:flatpak-test swap flatpak-session-helper flatpak-session-helper
|
||||
rpm -q flatpak --qf "%{NAME} %{VENDOR}\n" | grep -q ublue-os || { echo "Flatpak not from our copr, aborting"; exit 1; }
|
||||
|
||||
## Pins and Overrides
|
||||
## Use this section to pin packages in order to avoid regressions
|
||||
|
|
|
|||
|
|
@ -24,13 +24,11 @@ systemctl --global enable podman-auto-update.timer
|
|||
systemctl enable check-sb-key.service
|
||||
systemctl enable input-remapper.service
|
||||
|
||||
# Autostart bazaar
|
||||
#systemctl --global enable bazaar.service
|
||||
# TODO: Reinvestigate when bazaar gains dbus activation
|
||||
systemctl --global enable bazaar.service
|
||||
|
||||
# run flatpak preinstall once at startup
|
||||
if [[ "${UBLUE_IMAGE_TAG}" == "beta" ]]; then
|
||||
systemctl enable flatpak-preinstall.service
|
||||
fi
|
||||
|
||||
# disable sunshine service
|
||||
systemctl --global disable sunshine.service
|
||||
|
|
|
|||
14
system_files/shared/usr/lib/systemd/user/bazaar.service
Normal file
14
system_files/shared/usr/lib/systemd/user/bazaar.service
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=Bazaar background service
|
||||
Documentation=https://github.com/kolunmi/bazaar
|
||||
After=graphical-session.target
|
||||
StartLimitBurst=10
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=flatpak run --command=bazaar io.github.kolunmi.Bazaar --no-window
|
||||
StandardOutput=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical-session.target
|
||||
Loading…
Reference in a new issue