From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Boruch Baum <boruch_baum@gmx.com>
Cc: Emacs-Devel List <emacs-devel@gnu.org>
Subject: Re: GUI X-FreeDesktop integration
Date: Thu, 13 May 2021 23:46:07 -0400 [thread overview]
Message-ID: <jwvtun66l1f.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20210514031825.zcgswqzuxrkktrgs@E15-2016.optimum.net> (Boruch Baum's message of "Thu, 13 May 2021 23:18:25 -0400")
> 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
next prev parent reply other threads:[~2021-05-14 3:46 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-14 3:18 GUI X-FreeDesktop integration Boruch Baum
2021-05-14 3:46 ` Stefan Monnier [this message]
2021-05-16 3:26 ` Boruch Baum
2021-05-14 6:45 ` Eli Zaretskii
2021-05-14 7:20 ` Joost Kremers
2021-05-14 7:41 ` Eli Zaretskii
2021-05-14 7:53 ` Joost Kremers
2021-05-14 11:29 ` Yuri Khan
2021-05-14 13:51 ` Stefan Monnier
2021-05-16 3:33 ` Boruch Baum
2021-05-16 4:25 ` Eli Zaretskii
2021-05-16 4:36 ` Boruch Baum
2021-05-16 10:46 ` Robin Tarsiger
2021-05-16 20:07 ` Matthias Meulien
-- strict thread matches above, loose matches on Subject: below --
2021-05-25 21:34 Peter Oliver
2021-05-26 8:49 ` Robert Pluim
2021-05-26 12:14 ` Peter Oliver
2021-05-26 12:19 ` Eli Zaretskii
2021-05-28 12:54 ` Peter Oliver
2021-05-28 13:03 ` Eli Zaretskii
2021-05-28 18:49 ` chad
2021-05-28 19:16 ` Eli Zaretskii
2021-05-28 20:05 ` chad
2021-05-29 6:01 ` Eli Zaretskii
2021-08-12 12:42 Manuel Uberti
2021-08-12 12:51 ` Eli Zaretskii
2021-08-12 12:58 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvtun66l1f.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=boruch_baum@gmx.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.