zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.14k stars 2.97k forks source link

zed icon does not show in ubuntu dock #16396

Closed mahdic200 closed 2 months ago

mahdic200 commented 2 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

I'm using ubuntu 24 and it's default gnome gui . I installed zed with zed download page instructions . I have created ~/.local/share/zed-preview.desktop file and this is its configurations :

[Desktop Entry]
Version=1.0
Type=Application
Name=Zed Preview
GenericName=Text Editor
Comment=A high-performance, multiplayer code editor.
TryExec=zed
StartupNotify=true
Exec=zed %U
Icon=~/.local/zed-preview.app/share/icons/hicolor/512x512/apps/zed.png
Categories=Utility;TextEditor;Development;IDE;
Keywords=zed;
MimeType=text/plain;inode/directory;x-scheme-handler/zed;
Actions=NewWorkspace;
Icon=~/.local/zed-preview.app/share/icons/hicolor/512x512/apps/zed.png

[Desktop Action NewWorkspace]
Exec=zed --new %U
Name=Open a new workspace
Icon=~/.local/zed-preview.app/share/icons/hicolor/512x512/apps/zed.png

when I open zed or new window with zed , there is no sign of zed icon in the dock

Screenshot from 2024-08-17 07-41-28

I have searched a lot and tried out many ways , but it's not going to be fixed . logged in/out for thousands of times . updated gnome desktop database / caches . other applications are just fine and when you give them the Icon path in .desktop file they will be fixed and the icon in the dock is right . but zed :) . it doesn't respect to my settings .

Environment

ubuntu 24.04 LTS zed 0.147.2

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log


jansol commented 2 months ago

I have created ~/.local/share/zed-preview.desktop file

The name of that file is wrong, it should be dev.zed.Zed-Preview.desktop, matching the application id Zed sets on itself.

mahdic200 commented 2 months ago

thanks a lot , you saved me ! . I didn't know that . there is no integrated gnome tutorial for beginners or at least I haven't found it ! . thanks a lot by the way .

jansol commented 2 months ago

In case someone stumbles here later on: the install.sh script writes this file with the correct name, and the manual installation docs show the correct name for the stable release channel