sysprefpane

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package sysprefpane provides functions to open macOS System Settings panes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(pane Pane) error

Open opens a System Settings pane by its identifier.

func URL

func URL(pane Pane) string

URL returns the URL for a pane.

Types

type Pane

type Pane string

Pane represents a System Settings pane identifier.

const (
	Accessibility   Pane = "Privacy_Accessibility"
	Automation      Pane = "Privacy_Automation"
	ScreenRecording Pane = "Privacy_ScreenCapture"
	Camera          Pane = "Privacy_Camera"
	Microphone      Pane = "Privacy_Microphone"
	FullDiskAccess  Pane = "Privacy_AllFiles"
	FilesAndFolders Pane = "Privacy_FilesAndFolders"
	InputMonitoring Pane = "Privacy_ListenEvent"
	Location        Pane = "Privacy_LocationServices"
	Contacts        Pane = "Privacy_Contacts"
	Calendars       Pane = "Privacy_Calendars"
	Photos          Pane = "Privacy_Photos"
	DesktopFolder   Pane = "Privacy_DesktopFolder"
	DocumentsFolder Pane = "Privacy_DocumentsFolder"
	DownloadsFolder Pane = "Privacy_DownloadsFolder"
)

Privacy panes accessible via the Security preference pane.

const (
	Security Pane = "" // Opens Security & Privacy main pane
)

Top-level panes.

func (Pane) Open

func (p Pane) Open() error

Open opens the pane in System Settings.

func (Pane) URL

func (p Pane) URL() string

URL returns the x-apple.systempreferences URL for the pane.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL