emacs: update the path to the emacslient binary in the .desktop entry

This commit is contained in:
Protesilaos Stavrou 2025-06-09 16:13:24 +03:00
parent 91135aac55
commit ab15540c61
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -3,7 +3,7 @@ Name=Prot Emacsclient
GenericName=Text Editor
Comment=Edit text
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;x-scheme-handler/org-protocol;
Exec=sh -c "if [ -n \\"\\$*\\" ]; then exec /usr/bin/emacsclient --alternate-editor="emacs" --display=\\"\\$DISPLAY\\" \\"\\$@\\"; else exec /usr/bin/emacsclient --alternate-editor="emacs" --create-frame; fi" sh %F
Exec=sh -c "if [ -n \\"\\$*\\" ]; then exec /usr/local/bin/emacsclient --alternate-editor="emacs" --display=\\"\\$DISPLAY\\" \\"\\$@\\"; else exec /usr/local/bin/emacsclient --alternate-editor="emacs" --create-frame; fi" sh %F
Icon=emacs
Type=Application
Terminal=false
@ -14,7 +14,7 @@ Actions=new-window;new-instance;
[Desktop Action new-window]
Name=New Window
Exec=/usr/bin/emacsclient --alternate-editor="emacs" --create-frame %F
Exec=/usr/local/bin/emacsclient --alternate-editor="emacs" --create-frame %F
[Desktop Action new-instance]
Name=New Instance