The deb package also ships a com.google.Chrome.unstable.desktop file in /usr/share/applications now, with NoDisplay=true in the file to prevent displaying duplicate icons in the application menu. However, they put the line at the end of the file which is wrong, because that's the section for [Desktop Action new-private-window], and it should be put under the [Desktop Entry] section instead. Maybe this can be patched during the package() step? The new desktop file is also missing the StartupWMClass so you may also want to patch this too.
Upon further investigation, it seems that add StartupWMClass properties to the new com.google.Chrome.unstable.desktop file and delete the old google-chrome-unstable.desktop would be a better solution. Note that the value of StartupWMClass should be changed to google-chrome-unstable, which the first "g" is changed to lowercase, so the icon is not missing in the dock.
The "Fix the Chrome desktop entry" section in PKGBUILD can be changed to the following commands:
# Fix the Chrome desktop entry
sed -i \
-e "/Exec=/i\StartupWMClass=google-chrome-$_channel" \
-e "/# This is the same as google-chrome-unstable.desktop/,+4d" \
"$pkgdir"/usr/share/applications/com.google.Chrome.$_channel.desktop
rm "$pkgdir"/usr/share/applications/google-chrome-$_channel.desktop
Pinned Comments
gromit commented on 2023-07-19 17:01 (UTC) (edited on 2023-07-19 17:02 (UTC) by gromit)
When reporting this package as outdated make sure there is indeed a new version for Linux Desktop. You can have a look at the "Dev updates" tag in Release blog for this.
You can also run this command to obtain the version string for the latest chrome version:
Do not report updates for ChromeOS, Android or other platforms stable versions as updates here.