mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-16 22:19:47 -04:00
This is to avoid multiple polkit dialogs, regardless of transaction ordering. FlatpakTransaction calculates the 'strongest' op it has, and passes the hints accordingly. FlatpakInstallation doesn't pass hints, since it does individual operations. The system helper uses the hints to determine which PolicyKit permission to request. Since the policy typically has 'keep' set, this mean that the following operations in the same transaction will be able to reuse the permission obtained for the first one. Closes: #2384 Approved by: alexlarsson