Permissions

Permissions List:

IMPORTANT! PERMISSIONS ARE CASE SENSITIVE

All Permissions Information


Permissions Overview

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.

Key Notes:

  • 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.


Permissions Commands

1. Permission Request

permission "request" permission_name

Purpose: Requests a specific permission from the user. The requested permission must be named accurately (permission_name) due to case sensitivity. Example:

2. Give a Permission

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.


Accessing Application Permissions

To check the current permissions for an application, use the window.permissions variable (seen: File and code data). This will return the list of permissions that the application currently has access to.

Example Usage:


Checking Permissions

window.hasPermission(permission)

Checks if the window has been granted a specific permission.

Requesting Permissions

By following these conventions, you can efficiently manage application permissions while maintaining the security and integrity of your system.

Last updated

Was this helpful?