-
-
Notifications
You must be signed in to change notification settings - Fork 94
Deep Link Guide
Alin Lupascu edited this page Dec 17, 2024
·
6 revisions
This guide documents the currently available deep link actions supported by Pearcleaner
. Use these links to trigger specific actions or navigate within the app programmatically.
-
Description: Opens the
Pearcleaner
app on the main Applications page. -
Example:
pear://openPearcleaner
-
Description: Opens the settings page. Optionally, navigate to a specific tab by passing a
name
query item. -
Query Parameters:
-
name
(optional): Name of the settings tab (case-insensitive).
-
-
Examples:
- Open settings:
pear://openSettings
- Open the "General" settings tab:
pear://openSettings?name=general
- Open settings:
- Description: Opens the permissions window.
-
Example:
pear://openPermissions
- Description: Uninstalls an app by its name or path.
-
Query Parameters:
-
name
: Name of the app to uninstall (case-insensitive). -
path
: File path to the app. -
matchType
(optional): Determines how to match the app name. Valid values are:-
exact
: Match the name exactly. This is used by default if matchType is not provided. -
contains
: Match the name partially.
-
-
-
Examples:
- Uninstall app by exact name:
pear://uninstallApp?name=pearcleaner&matchType=exact
- Uninstall app by partial name:
pear://uninstallApp?name=cleaner&matchType=contains
- Uninstall app by path:
pear://uninstallApp?path=/Applications/Pearcleaner.app
- Uninstall app by exact name:
- Description: Opens the "Orphaned Files" page.
-
Example:
pear://checkOrphanedFiles
- Description: Opens the development environment page. Optionally, search for a specific environment by name.
-
Query Parameters:
-
name
(optional): Name of the environment (case-insensitive).
-
-
Examples:
- Open the development page:
pear://checkDevEnv
- Search for an environment:
pear://checkDevEnv?name=xcode
- Open the development page:
- Description: Adds or removes a folder path where to check for .app bundles. Only folder paths are supported.
-
Query Parameters:
-
add
orremove
(required): Specifies the action to perform. -
path
(required): The full path to the folder.
-
-
Examples:
- Add a folder path:
pear://appsPaths?add&path=/Users/USER/Applications
- Remove a folder path:
pear://appsPaths?remove&path=/Users/USER/Applications
- Add a folder path:
- Description: Adds or removes a path to exclude from orphaned files search. Supports both files and folders.
-
Query Parameters:
-
add
orremove
(required): Specifies the action to perform. -
path
(required): The full path to the file or folder.
-
-
Examples:
- Add a file or folder path:
pear://orphanedPaths?add&path=/Users/USER/Documents/file_to_exclude.txt
- Remove a file or folder path:
pear://orphanedPaths?remove&path=/Users/USER/Documents/file_to_exclude.txt
- Add a file or folder path:
- Description: Checks for updates and displays the update dialog if available.
-
Example:
pear://checkUpdates
- Description: Refreshes the list of installed apps.
-
Example:
pear://refreshAppsList
- Description: Resets all user settings to their default values.
-
Example:
pear://resetSettings
-
URL Format: Deep links must follow the format:
pear://<action>?<queryParameters>&<optionals>