I have 2 Google accounts (personal/work). If I go to the Google Calendar site, on the work account, in Chrome, I can go to ...
/ More tools
/ Create shortcut...
, which will create a Google Calendar.app
file.
I can then add it to the dock – but, this goes to the wrong account ๐
If I do Show Package Contents
I can open the Info.plist
file, and I see the url inside:
<key>CrAppModeShortcutURL</key>
<string>https://calendar.google.com/calendar/r</string>
Now if I change the url to https://calendar.google.com/calendar/b/1/r
(which is the correct way to choose a specific Google account), I would expect it to work. But in fact that doesn't change anything.
But actually, even if I put any random website here, it will still go to Google Calendar so basically I think this has no effect at all, which is surprising.
Ideas?
Best Answer
I also had this issue (trying to create an app shortcut to the second Google Calendar account) and solved it by creating a web app manifest before creating the app shortcut:
This will add a Web App Manifest for this website which will be used when creating the app.
Once you have done this, you can create the desktop app as normal:
Now you should have a separate desktop app for your second calendar account!
Source: https://github.com/karlhorky/pwa-tricks#change-starting-url-of-pwa-in-chrome
Alternative: Editing an Existing Manifest
If you're trying to add a different PWA than Google Calendar where the page either specifies a manifest already or sets the Content Security Policy directive
manifest-src
, then the above solution may not work, potentially also returning an error such as:To get around this, you can use Chrome Local Overrides to modify the
start_url
in the Web App Manifest:<head>
element and find thelink
element withrel="manifest"
. Note the file path inhref
.Sources
tab in the DevTools. If you have not used overrides before, you will need to set them up:Overrides
2nd-level tab (you may need to find it in theยป
menu)projects
orDocuments
folder calledchrome-overrides
๏ผ Select folder for overrides
and select the folder you createdSave for overrides
:start_url
or anything else that you need, save the file and reload the pageSource: https://github.com/karlhorky/pwa-tricks#solution-2-edit-an-existing-web-app-manifest