From: Steinar Bang <sb@dod.no>
Subject: Re: Is it possible to use emacsclient as the Gnome system editor?
Date: Wed, 22 Nov 2006 08:40:38 +0100 [thread overview]
Message-ID: <87psbgudxl.fsf@bang.priv.no> (raw)
In-Reply-To: 87zmak9991.fsf@MagnumOpus.khem
>>>>> "Charles philip Chan" <cpchan@sympatico.ca>:
> On 21 Nov 2006, sb@dod.no wrote:
>> So what I wonder is: is it possible to create an emacsclient.desktop
>> entry? Or is desktop entry for emacsclient a meaningless concept?
> Yes.
> (1) Copy emacs.desktop to emacsclient.desktop
> (2) Open the emacsclient.desktop file in an edit
> (3) Change the command from emacs to emacsclient
Thanx to all who has responded in this thread! This worked great! :-)
What I now have is a $HOME/.local/share/applications/defaults.list
file that looks like this:
[Default Applications]
text/plain=emacsclient.desktop
text/xml=emacsclient.desktop
application/x-perl=emacsclient.desktop
text/x-chdr=emacsclient.desktop
text/x-csrc=emacsclient.desktop
text/x-dtd=emacsclient.desktop
text/x-java=emacsclient.desktop
text/mathml=emacsclient.desktop
text/x-python=emacsclient.desktop
text/x-sql=emacsclient.desktop
I had to map more types than text/plain to get it working. I would
have added text/html and application/xhtml+xml as well, because the
reason I'm doing this is to make GNU Emacs the system editor from
eclipse's PPW. But I was afraid that changing those would interfer
with the Gnome desktop's operation.
The emacsclient.desktop file I ended up with, and which works for me,
looks like this (I changed as little as possible):
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Emacs 21 (X11)
GenericName=Emacs
Comment=GNU Emacs 21 Text Editor
Exec=/usr/bin/emacsclient
TryExec=emacsclient
Terminal=false
Type=Application
Icon=/usr/share/emacs/21.4/etc/gnu-32x32.xpm
Categories=Application;Development;
MimeType=text/plain
next prev parent reply other threads:[~2006-11-22 7:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.934.1164115395.2155.help-gnu-emacs@gnu.org>
2006-11-21 13:42 ` Is it possible to use emacsclient as the Gnome system editor? Charles philip Chan
2006-11-22 7:40 ` Steinar Bang [this message]
2006-11-21 18:07 ` Olive
2006-11-21 19:11 ` Juanma Barranquero
2006-11-21 13:22 Steinar Bang
2006-11-21 13:59 ` Lennart Borgman
2006-11-21 14:07 ` Leo
[not found] ` <mailman.938.1164117578.2155.help-gnu-emacs@gnu.org>
2006-11-21 14:25 ` David Kastrup
2006-11-21 15:34 ` Lennart Borgman
2006-11-22 7:53 ` Steinar Bang
[not found] ` <mailman.977.1164182027.2155.help-gnu-emacs@gnu.org>
2006-11-22 10:08 ` David Kastrup
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=87psbgudxl.fsf@bang.priv.no \
--to=sb@dod.no \
/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.