mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-19 22:39:08 -04:00
Use DeletePermission when available
This avoids a racy client-side implementation.
This commit is contained in:
committed by
Alexander Larsson
parent
43a538e0a4
commit
c503307ae0
@@ -69,6 +69,11 @@ remove_item (XdpDbusPermissionStore *store,
|
||||
if (!xdp_dbus_permission_store_call_delete_sync (store, table, id, NULL, error))
|
||||
return FALSE;
|
||||
}
|
||||
else if (xdp_dbus_permission_store_get_version (store) == 2)
|
||||
{
|
||||
if (!xdp_dbus_permission_store_call_delete_permission_sync (store, table, id, app_id, NULL, error))
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
GVariant *perms = NULL;
|
||||
|
||||
Reference in New Issue
Block a user