vscodium icon indicating copy to clipboard operation
vscodium copied to clipboard

Searching for "Codium" on GNOME desktop should display app to execute

Open bittner opened this issue 2 years ago • 0 comments

Describe the bug When installing Codium as a snap (on Ubuntu) the installed desktop shortcut allows a user to find Codium by searching for "code" or "vscode", but not "codium", on the desktop.

Please confirm that this problem is VSCodium-specific

  • [x] ~~This bug doesn't happen if I use Microsoft's Visual Studio Code. It only happens in VSCodium.~~ (Not verified but obviously not applicable.)

Please confirm that the issue/resolution isn't already documented

  • [x] I checked the Docs page and my issue is not mentioned there.

To Reproduce Steps to reproduce the behavior:

  1. On Ubuntu (e.g. 22.04.3 LTS), install the Codium snap, e.g. snap install --classic codium.
  2. Using the GNOME desktop, press the Super key and type "codium".
  3. The installed "VSCodium" application is not displayed.
    (Side note: VSCodium may appear via the "Software" lens, i.e. as software installable via GNOME's app store, though.)
  4. Using the GNOME desktop, press the Super key and type "code" or "vscode".
  5. The installed "VSCodium" application is now displayed.

Expected behavior Whether typing "codium", "code", "vscodium" or "vscode" in GNOME's desktop search bar an installed "VSCodium" application should be displayed for execution.

I was unable to find the related desktop file in this repository. Can you point me to the file? I would happily provide the needed PR!

Desktop (please complete the following information):

  • OS: Ubuntu 22.04
  • Architecture: x64
  • Version: 1.82.2
  • App Manager: Snap
  • Sandboxed: Snap

Additional Context The apparent culprit is /var/lib/snapd/desktop/applications/codium_codium.desktop. It should be changed like this:

diff --git a/codium_codium.desktop b/codium_codium.desktop
[Desktop Entry]
X-SnapInstanceName=codium
Name=VSCodium
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/codium_codium.desktop /snap/bin/codium --unity-launch %F
Icon=/snap/codium/345/usr/share/pixmaps/vscodium.png
Type=Application
StartupNotify=false
StartupWMClass=VSCodium
Categories=TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;application/x-codium-workspace;
Actions=new-empty-window;
-Keywords=vscode;
+Keywords=vscodium;vscode;

Maybe even more keywords would be useful, e.g.

-Keywords=vscode;
+Keywords=develop;ide;vscodium;vscode;
  • It's likely that also other packaging for Linux is affected (e.g. Flatpak, Debian, RPM, etc.), which should also be addressed (if there is not a single, central desktop shortcut file).
  • It might be wise to apply the same changes to the codium_url-handler.desktop file, just to be consistent.

bittner avatar Sep 27 '23 15:09 bittner