<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/etc/emacsclient.desktop, branch scratch/string-common-prefix</title>
<subtitle>Emacs is the extensible, customizable, self-documenting real-time display editor. 
</subtitle>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/'/>
<entry>
<title>Make emacsclient handle org-protocol:// links</title>
<updated>2023-09-01T18:50:06+00:00</updated>
<author>
<name>Ihor Radchenko</name>
</author>
<published>2023-08-23T09:24:18+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=05a7c91b91c02c34ec6527119a465e5408dea2b1'/>
<id>05a7c91b91c02c34ec6527119a465e5408dea2b1</id>
<content type='text'>
Org mode provides a way to quickly capture bookmarks, notes, and links
using emacsclient:

    emacsclient "org-protocol://store-link?url=URL&amp;title=TITLE"

* etc/emacsclient.desktop: Make Emacs the default application for
org-protocol.  (Bug#65469)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Org mode provides a way to quickly capture bookmarks, notes, and links
using emacsclient:

    emacsclient "org-protocol://store-link?url=URL&amp;title=TITLE"

* etc/emacsclient.desktop: Make Emacs the default application for
org-protocol.  (Bug#65469)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix quoted argument in emacsclient-mail.desktop Exec key</title>
<updated>2022-12-24T07:19:40+00:00</updated>
<author>
<name>Ulrich Müller</name>
</author>
<published>2022-12-19T15:51:20+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=d32091199ae5de590a83f1542a01d75fba000467'/>
<id>d32091199ae5de590a83f1542a01d75fba000467</id>
<content type='text'>
Apparently the emacsclient-mail.desktop file doesn't conform to the
Desktop Entry Specification at
https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables
which says about the Exec key:

| Field codes must not be used inside a quoted argument, the result of
| field code expansion inside a quoted argument is undefined.

However, the %u field code is used inside a quoted argument of the
Exec key in both the [Desktop Entry] and [Desktop Action new-window]
sections.
* etc/emacsclient-mail.desktop (Exec): The Desktop Entry
Specification does not allow field codes like %u inside a quoted
argument. Work around it by passing %u as first parameter ($1)
to the shell wrapper.
* etc/emacsclient.desktop (Exec): Use `sh` rather than `placeholder`
as the command name of the shell wrapper.  (Bug#60204)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Apparently the emacsclient-mail.desktop file doesn't conform to the
Desktop Entry Specification at
https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables
which says about the Exec key:

| Field codes must not be used inside a quoted argument, the result of
| field code expansion inside a quoted argument is undefined.

However, the %u field code is used inside a quoted argument of the
Exec key in both the [Desktop Entry] and [Desktop Action new-window]
sections.
* etc/emacsclient-mail.desktop (Exec): The Desktop Entry
Specification does not allow field codes like %u inside a quoted
argument. Work around it by passing %u as first parameter ($1)
to the shell wrapper.
* etc/emacsclient.desktop (Exec): Use `sh` rather than `placeholder`
as the command name of the shell wrapper.  (Bug#60204)
</pre>
</div>
</content>
</entry>
<entry>
<title>Drop redundant keywords in .desktop files.</title>
<updated>2021-08-11T12:05:25+00:00</updated>
<author>
<name>Peter Oliver</name>
</author>
<published>2021-07-10T11:01:57+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=024e6d213cfd6a0f273d485003e1c37e061ef227'/>
<id>024e6d213cfd6a0f273d485003e1c37e061ef227</id>
<content type='text'>
The Freedesktop.org Desktop Entry spec says, “The values [of
Keywords]… should not be redundant with the values of Name or
GenericName”.

* etc/emacs.desktop, etc/emacsclient.desktop (Keywords): Remove
keywords that are duplicated from the GenericName field.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The Freedesktop.org Desktop Entry spec says, “The values [of
Keywords]… should not be redundant with the values of Name or
GenericName”.

* etc/emacs.desktop, etc/emacsclient.desktop (Keywords): Remove
keywords that are duplicated from the GenericName field.
</pre>
</div>
</content>
</entry>
<entry>
<title>Hint that emacsclient.desktop should match a search for “emacsclient”</title>
<updated>2021-08-11T12:05:14+00:00</updated>
<author>
<name>Peter Oliver</name>
</author>
<published>2021-07-10T11:01:09+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=aea7823a7e4a2cd3a1904b3bc2ed4f5fc5c26a69'/>
<id>aea7823a7e4a2cd3a1904b3bc2ed4f5fc5c26a69</id>
<content type='text'>
This is necessary to get the Gnome desktop to show “Emacs (Client)”
when the user searches for “emacsclient”.

* etc/emacsclient.desktop, emacsclient-mail.desktop (Keywords): Add
“emacsclient”.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is necessary to get the Gnome desktop to show “Emacs (Client)”
when the user searches for “emacsclient”.

* etc/emacsclient.desktop, emacsclient-mail.desktop (Keywords): Add
“emacsclient”.
</pre>
</div>
</content>
</entry>
<entry>
<title>Valid quoting in .desktop files</title>
<updated>2021-08-11T12:04:58+00:00</updated>
<author>
<name>Peter Oliver</name>
</author>
<published>2021-07-07T21:04:01+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=0a4b66f82752adeb808851a36eabd0554779b33c'/>
<id>0a4b66f82752adeb808851a36eabd0554779b33c</id>
<content type='text'>
* etc/emacsclient.desktop, emacsclient-mail.desktop (Exec): Quote
according to the rules in the Freedesktop.org Desktop Entry
Specification.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* etc/emacsclient.desktop, emacsclient-mail.desktop (Exec): Quote
according to the rules in the Freedesktop.org Desktop Entry
Specification.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix copy/paste error in emacsclient.desktop</title>
<updated>2021-07-01T10:46:10+00:00</updated>
<author>
<name>Peter Oliver</name>
</author>
<published>2021-07-01T10:46:10+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=1a7c8f846eb8cccf1d2439f8b03a171b1b6bd104'/>
<id>1a7c8f846eb8cccf1d2439f8b03a171b1b6bd104</id>
<content type='text'>
* etc/emacsclient.desktop: new-instance should read new-window.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* etc/emacsclient.desktop: new-instance should read new-window.
</pre>
</div>
</content>
</entry>
<entry>
<title>From .desktop files, reuse a frame or start a new Emacs as required</title>
<updated>2021-06-30T13:11:21+00:00</updated>
<author>
<name>Peter Oliver</name>
</author>
<published>2021-06-30T13:11:21+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=cbf220bc31c0a00c45b22c140eda7854d81d991b'/>
<id>cbf220bc31c0a00c45b22c140eda7854d81d991b</id>
<content type='text'>
* doc/emacs/misc.texi: (Using Emacs as a Server) Explain
emacsclient.desktop.
* etc/NEWS: (Emacs Server): Explain emacsclient.desktop.
* emacs-mail.desktop, etc/emacsclient.desktop: Automatically try to
reuse an existing frame, open a new frame, or start a new Emacs
daemon.  Add actions for specific behaviours (bug#49195).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* doc/emacs/misc.texi: (Using Emacs as a Server) Explain
emacsclient.desktop.
* etc/NEWS: (Emacs Server): Explain emacsclient.desktop.
* emacs-mail.desktop, etc/emacsclient.desktop: Automatically try to
reuse an existing frame, open a new frame, or start a new Emacs
daemon.  Add actions for specific behaviours (bug#49195).
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert more of a partially reverted emacsclient.desktop patch</title>
<updated>2021-06-30T13:01:46+00:00</updated>
<author>
<name>Peter Oliver</name>
</author>
<published>2021-06-30T13:01:46+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=f355f32e69b1389f7d51b8a50c0a9c064dc2cb32'/>
<id>f355f32e69b1389f7d51b8a50c0a9c064dc2cb32</id>
<content type='text'>
* etc/emacsclient.desktop: Undo setting of StartupWMClass=Emacsd, since
this relies on a change to etc/emacs.service which was also undone.  See
bug#37847 for more explanation (bug#49259).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* etc/emacsclient.desktop: Undo setting of StartupWMClass=Emacsd, since
this relies on a change to etc/emacs.service which was also undone.  See
bug#37847 for more explanation (bug#49259).
</pre>
</div>
</content>
</entry>
<entry>
<title>Advertise support for Startup Notification when built with GTK</title>
<updated>2021-06-22T13:17:28+00:00</updated>
<author>
<name>Peter Oliver</name>
</author>
<published>2021-06-22T13:17:28+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=57ec4aadc65389f6df5a173cfbff0a551b3ee25d'/>
<id>57ec4aadc65389f6df5a173cfbff0a551b3ee25d</id>
<content type='text'>
* etc/emacsclient.desktop, etc/emacsclient.desktop: Specify
StartupNotify=true.
* configure.ac (USE_STARTUP_NOTIFICATION): New variable, yes iff
HAVE_GTK.
* Makefile.in (install-etc): Remove StartupNotify=true from
etc/*.desktop unless USE_STARTUP_NOTIFICATION (bug#48783).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* etc/emacsclient.desktop, etc/emacsclient.desktop: Specify
StartupNotify=true.
* configure.ac (USE_STARTUP_NOTIFICATION): New variable, yes iff
HAVE_GTK.
* Makefile.in (install-etc): Remove StartupNotify=true from
etc/*.desktop unless USE_STARTUP_NOTIFICATION (bug#48783).
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve client/daemon xdg/systemd experience</title>
<updated>2020-08-09T13:57:51+00:00</updated>
<author>
<name>Carlos Pita</name>
</author>
<published>2020-08-09T13:57:51+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=1a845a672dc73c8e98e6cb9bb734616e168e60ba'/>
<id>1a845a672dc73c8e98e6cb9bb734616e168e60ba</id>
<content type='text'>
* Makefile.in: Add emacsclient.desktop generation.
* etc/emacsclient.desktop: Add file, use emacsd as StartupWMClass.
* etc/emacs.service: Run with name emacsd (bug#37847).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Makefile.in: Add emacsclient.desktop generation.
* etc/emacsclient.desktop: Add file, use emacsd as StartupWMClass.
* etc/emacs.service: Run with name emacsd (bug#37847).
</pre>
</div>
</content>
</entry>
</feed>
