20-default-access.lua 458 B

1234567891011121314151617181920
  1. default_access = {}
  2. default_access.properties = {}
  3. default_access.rules = {}
  4. function default_access.enable()
  5. if default_access.enabled == false then
  6. return
  7. end
  8. load_access("default", {
  9. rules = default_access.rules
  10. })
  11. if default_access.properties["enable-flatpak-portal"] then
  12. -- Enables portal permissions via org.freedesktop.impl.portal.PermissionStore
  13. load_module("portal-permissionstore")
  14. load_access("portal")
  15. end
  16. end