Skip to content

Querying and manually requesting permissions for Electron applications on Mac. #477

Closed
@mushan0x0

Description

@mushan0x0

Short overview

I want to trigger permission requests manually, so that I can better guide users to set permissions.

Detailed feature description

const Permission = {
  /**
   * Query whether the user has a certain permission
   * @param {string} permissionName - The name of the permission
   * @returns {boolean} - Whether the user has the permission
   */
  query(permissionName) {
    // Implement query logic
  },
  
  /**
   * Request a certain permission
   * @param {string} permissionName - The name of the permission
   * @returns {Promise<boolean>} - A Promise that resolves if the permission is granted, and rejects if the permission is not granted
   */
  request(permissionName) {
    // Implement request logic
  },
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions