all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: <c.buhtz@posteo.jp>
To: help-gnu-emacs@gnu.org
Subject: How does Emacs select the "-nw" terminal
Date: Sat, 15 May 2021 07:33:45 +0000	[thread overview]
Message-ID: <4FhxwF3bpSz6tmG@submission01.posteo.de> (raw)

Hello,

I am using

GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of
2021-01-31, modified by Debian

in Debian 10 (stable).

My question is if and how Emacs itself decide in which terminal
emulation it opens when started via "emacs -nw" in a desktop
environment (e.g. Xfce).
And can I manipulate that?

The background of my question:
When I open the context menu of a file in my Xfce filemanager Thunar
the "Open with..." sub-context-menu offers me "Emacs (GUI)" and "Emacs
(Terminal)".

The later opens emacs in a simple (and ugly) xterm.
The entry in that context menu referes to a .desktop-file
(/usr/share/applications/emacs-term.desktop) with the line

	"Exec=/usr/bin/emacs -nw %F"

xterm is not the default terminal. The default is
"/usr/bin/terminator". I checked that via "update-alternatives --config
x-terminal-emulator".

When I enter "emacs -nw" in my terminator window the emacs opens in
that terminator window. So there is not xterm involved.

So it looks like that emacs ignores the systems default terminal.

What is the background of that behaviour and can I modify it?

Thanks in advance



             reply	other threads:[~2021-05-15  7:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-15  7:33 c.buhtz [this message]
2021-05-15  7:59 ` How does Emacs select the "-nw" terminal tomas
2021-05-15 19:55   ` Jean Louis
2021-05-15  8:56 ` Yuri Khan
2021-05-15 21:11   ` c.buhtz

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=4FhxwF3bpSz6tmG@submission01.posteo.de \
    --to=c.buhtz@posteo.jp \
    --cc=help-gnu-emacs@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.