From bd94f9473e34767caffe33cefc501aba0d0d3a93 Mon Sep 17 00:00:00 2001 From: tohurtv Date: Mon, 24 Nov 2025 16:06:40 -0700 Subject: [PATCH] fix --- debian/changelog | 6 ++++++ debian/postinst | 1 + usr/lib/systemd/system/appstream-refresh.service | 6 ++++++ usr/lib/systemd/system/appstream-refresh.timer | 10 ++++++++++ 4 files changed, 23 insertions(+) create mode 100644 usr/lib/systemd/system/appstream-refresh.service create mode 100644 usr/lib/systemd/system/appstream-refresh.timer diff --git a/debian/changelog b/debian/changelog index 207552f..dede314 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +rakuos-settings (1.1.2-1-1rakuos1) unstable; urgency=medium + + * Fix for RakuOS Appstream info via timer + + -- Tohur Wed, 23 Nov 2025 23:22:44 -0700 + rakuos-settings (1.1.1-1-1rakuos1) unstable; urgency=medium * Fix for RakuOS Appstream info diff --git a/debian/postinst b/debian/postinst index ad27976..8535319 100755 --- a/debian/postinst +++ b/debian/postinst @@ -3,3 +3,4 @@ set -e systemctl enable pci-latency.service +systemctl enable appstream-refresh.timer diff --git a/usr/lib/systemd/system/appstream-refresh.service b/usr/lib/systemd/system/appstream-refresh.service new file mode 100644 index 0000000..d5518b4 --- /dev/null +++ b/usr/lib/systemd/system/appstream-refresh.service @@ -0,0 +1,6 @@ +[Unit] +Description=Refresh AppStream metadata cache + +[Service] +Type=oneshot +ExecStart=/usr/bin/appstreamcli refresh --source=os diff --git a/usr/lib/systemd/system/appstream-refresh.timer b/usr/lib/systemd/system/appstream-refresh.timer new file mode 100644 index 0000000..a4ccba7 --- /dev/null +++ b/usr/lib/systemd/system/appstream-refresh.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Run AppStream refresh every 15 minutes + +[Timer] +OnBootSec=5m +OnUnitActiveSec=30m +Unit=appstream-refresh.service + +[Install] +WantedBy=timers.target