If you're on Ubuntu 20.04 and create a webapp through Chromium Snap (via menu, 'More tools', 'Create shortcut...', tag 'Open as window', right-click the .desktop file on your desktop and choose 'Allow Launching') you will notice the app cannot be pinned to the dock (since there's no option 'Add to Favorites'). Also, the webapp will not be found when you search for it.
I tried a variety of things, but finally I gave up on the official Chromium build altogether. It turns out that the normal
apt
install just installs the snap (which seems like a jerk move, Canonical; I was trying to avoid the snap for a reason). But somebody maintains an unofficial Chromium build in a PPA: https://launchpad.net/~xalt7x/+archive/ubuntu/chromium-deb-vaapiMake sure to follow the instructions on that page, which show you how to make the PPA version higher priority than the official one.
With that, you can get a decent experience by:
~/.local/share/applications
directoryThen at last you can have your favorite web app (e.g., Google Calendar) look and behave like a normal desktop app.
Copy (or move) the
.desktop
file of the webapp to~/.local/share/applications/
.After that, you can find your webapp in Gnome Apps and pin it to the dock like any other app.
Edit: apparently it's a big hit-and-miss game, as per this bug: https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1732482
Please indicate on Launchpad that you're affected by this bug to increase the heat and hopefully have it fixed faster.