Skip to content

Commit 2ca248c

Browse files
committed
Update docs for deeplink usage
1 parent e95c627 commit 2ca248c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

docs/linux.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ For easier access, you can create a desktop entry file that will add Studio to y
7373
Exec=<absolute-path-to-repo>/out/Studio-linux-x64/studio %U
7474
Type=Application
7575
Terminal=false
76-
MimeType=x-scheme-handler/wpcom-local-dev;
76+
MimeType=x-scheme-handler/wp-studio;
7777
Categories=Development;
7878
```
7979

@@ -93,7 +93,7 @@ For easier access, you can create a desktop entry file that will add Studio to y
9393
update-desktop-database ~/.local/share/applications
9494
```
9595

96-
Studio should now appear in your application launcher and can handle `wpcom-local-dev://` protocol URLs.
96+
Studio should now appear in your application launcher and can handle `wp-studio://` protocol URLs.
9797

9898
## Running with Wayland
9999

src/lib/deeplink/deeplink-handler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { handleSyncConnectSiteDeeplink } from 'src/lib/deeplink/handlers/sync-co
55
/**
66
* Main deeplink handler that routes incoming deeplinks to the appropriate handler.
77
* Supports the following deeplink schemes:
8-
* - wpcom-local-dev://auth - OAuth authentication callback
9-
* - wpcom-local-dev://sync-connect-site - Sync site connection from WordPress.com
10-
* - wpcom-local-dev://add-site?blueprint_url=<encoded-url> - Add site with blueprint from URL
8+
* - wp-studio://auth - OAuth authentication callback
9+
* - wp-studio://sync-connect-site - Sync site connection from WordPress.com
10+
* - wp-studio://add-site?blueprint_url=<encoded-url> - Add site with blueprint from URL
1111
*/
1212
export async function handleDeeplink( url: string ): Promise< void > {
1313
const urlObject = new URL( url );

src/lib/deeplink/handlers/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async function handleAuthCallback( hash: string ): Promise< StoredToken > {
5656
/**
5757
* Handles the OAuth authentication deeplink callback.
5858
* This function is called when the user completes authentication on WordPress.com
59-
* and is redirected back to the app via wpcom-local-dev://auth
59+
* and is redirected back to the app via wp-studio://auth
6060
*/
6161
export async function handleAuthDeeplink( urlObject: URL ): Promise< void > {
6262
const { hash } = urlObject;

src/lib/deeplink/handlers/sync-connect-site.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { sendIpcEventToRenderer } from 'src/ipc-utils';
33
/**
44
* Handles the sync-connect-site deeplink callback.
55
* This function is called when a user initiates a sync connection from WordPress.com
6-
* and is redirected back to the app via wpcom-local-dev://sync-connect-site
6+
* and is redirected back to the app via wp-studio://sync-connect-site
77
*/
88
export async function handleSyncConnectSiteDeeplink( urlObject: URL ): Promise< void > {
99
const { searchParams } = urlObject;

0 commit comments

Comments
 (0)