[Unit]
Description=Workaround for Atomic Destkops to refresh the appstream cache
Documentation=https://gitlab.com/fedora/ostree/sig/-/work_items/103
ConditionPathIsReadWrite=/var
ConditionPathExists=/run/ostree-booted
After=local-fs.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=appstreamcli refresh --force
Nice=19
IOWeight=10

[Install]
WantedBy=multi-user.target
