emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GUI X-FreeDesktop integration


From: Stefan Monnier
Subject: Re: GUI X-FreeDesktop integration
Date: Thu, 13 May 2021 23:46:07 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> Step 1: New file: /usr/share/applications/emacsclient.desktop
> #+begin_src conf
> [Desktop Entry]
> Name=Emacsclient
> GenericName=Connect to an Emacs server
> X-GNOME-FullName=Connect to an Emacs server
> Encoding=UTF-8
> Version=1.0
> Comment=Connect to an Emacs server using emacsclient
> NoDisplay=false
> Exec=\emacsclient -c --alternate-editor="" --eval "(pick-a-suitable-name 
> \"%F\")"
> Terminal=false
> X-MultipleArgs=false
> Type=Application
> Icon=emacs
> Categories=Office;Development
> StartupWMClass=Emacs
> StartupNotify=true
> # MimeType=
> #+end_src

Oh, yes, please a `emacsclient.desktop` would be very welcome (I
actually expected the Debian packagers to provide it ;-).

I don't know what the lines above really do, tho, so I can't judge
whether they're the best choice.  I do know the

    \emacsclient -c --alternate-editor="" --eval "(pick-a-suitable-name \"%F\")"

looks odd.  How is this %F defined (e.g. what is it expanded to when the
file you try to open contains a space or a quote character in its name)?
I expected it should be more like:

    \emacsclient -c --alternate-editor="" %F

Can you explain how your `pick-a-suitable-name` differs from that?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]