On 22/01/2026 6:20 am, Victor A. Stoichita wrote:
cat /usr/local/share/applications/emacsclient.desktop [Desktop Entry]
[...]
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/local/bin/emacsclient --alternate-editor= --reuse-frame \\"\\$@\\"; else exec emacsclient --alternate-editor= --create-frame; fi" sh %F
%F causes failure, it should be %U. You may edit a copy the file placed into e.g. ~/.local/share/applications
<https://debbugs.gnu.org/74467> org-protocol emacsclient.desktop change is not fully functional
