Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions debian/flatpak.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ if [ "$1" = configure ]; then
# Run a do-nothing command (it just lists configured remotes) for
# its side-effect of initializing the shared system-wide repository.
flatpak remote-list --system >/dev/null || :

# Enable rewrite-launchers user service on first install only,
# if it has not been enabled before.
if [ -z "${DPKG_ROOT:-}" ] ; then
deb-systemd-helper --user unmask 'xdg-desktop-portal-rewrite-launchers.service' >/dev/null || true
# was-enabled defaults to true, so new installations run enable.
if deb-systemd-helper --quiet --user was-enabled 'xdg-desktop-portal-rewrite-launchers.service' ; then
deb-systemd-helper --user enable 'xdg-desktop-portal-rewrite-launchers.service' >/dev/null || true
fi
fi
fi

exit 0
Expand Down