GNU bug report logs - #74467
31.0.50; org-protocol emacsclient.desktop change is not fully functional

Previous Next

Package: emacs;

Reported by: Alexey Lebedeff <binarin <at> binarin.info>

Date: Fri, 22 Nov 2024 03:57:02 UTC

Severity: normal

Merged with 79068

Found in versions 30.1, 31.0.50

Full log


Message #71 received at 74467 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ihor Radchenko <yantar92 <at> posteo.net>
Cc: bjorn.bidar <at> thaodan.de, binarin <at> binarin.info, 74467 <at> debbugs.gnu.org
Subject: Re: bug#74467: 31.0.50; org-protocol emacsclient.desktop change is
 not fully functional
Date: Sat, 11 Jan 2025 13:09:56 +0200
> From: Ihor Radchenko <yantar92 <at> posteo.net>
> Cc: Björn Bidar <bjorn.bidar <at> thaodan.de>,
>  74467 <at> debbugs.gnu.org,
>  binarin <at> binarin.info
> Date: Sun, 05 Jan 2025 08:55:54 +0000
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > ...  Ihor
> > seemed to say that if this can be supported, there could be an
> > alternative patch for fixing this issue, and I'd like to see that
> > alternative patch to decide which one is simpler and/or more elegant.
> 
> See the attached.
> If Emacs can handle file URIs, we can simply use %U field code.
> 
> diff --git a/etc/emacsclient.desktop b/etc/emacsclient.desktop
> index 4395d3b02bc..c339ac93687 100644
> --- a/etc/emacsclient.desktop
> +++ b/etc/emacsclient.desktop
> @@ -3,7 +3,7 @@ Name=Emacs (Client)
>  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 emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" \\"\\$@\\"; else exec emacsclient --alternate-editor= --create-frame; fi" sh %F
> +Exec=sh -c "if [ -n \\"\\$*\\" ]; then exec emacsclient --alternate-editor= --display=\\"\\$DISPLAY\\" \\"\\$@\\"; else exec emacsclient --alternate-editor= --create-frame; fi" sh %U
>  Icon=emacs
>  Type=Application
>  Terminal=false

Thanks, but I think we need to turn on the url-handler-mode before
Emacs can visit files specified as file:// URIs.




This bug report was last modified 5 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.