Permissions
Last updated
Was this helpful?
Last updated
Was this helpful?
Permissions in Origin OS govern what actions applications are allowed to perform. These permissions are strictly case-sensitive and must be explicitly granted. Applications in the Applications folder or designated as System Apps automatically gain access to all permissions due to their elevated trust level.
Case Sensitivity: Permissions are case-sensitive. Ensure the correct capitalisation when requesting or granting permissions.
System Apps and Applications Folder: Applications marked as system-level or stored in the Applications folder bypass manual permission requests and are granted all permissions automatically.
Permission Control: Fine-grained permission control is available for non-system apps.
Purpose: Requests a specific permission from the user. The requested permission must be named accurately (permission_name
) due to case sensitivity.
Example:
Purpose: Grants a specific permission (permission_name
) to the specified application (application_name
).
Requirements:
The executing application must have the "permission editor" privilege to perform this action.
Example Usage:
Checks if the window has been granted a specific permission.
By following these conventions, you can efficiently manage application permissions while maintaining the security and integrity of your system.
To check the current permissions for an application, use the window.permissions
variable (seen: ). This will return the list of permissions that the application currently has access to.