From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: How does Emacs select the "-nw" terminal Date: Sat, 15 May 2021 07:33:45 +0000 Message-ID: <4FhxwF3bpSz6tmG@submission01.posteo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8116"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 15 09:34:19 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lhooV-0001ws-Cs for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 09:34:19 +0200 Original-Received: from localhost ([::1]:58936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhooT-0000iY-Jy for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 03:34:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhoo7-0000i9-IG for help-gnu-emacs@gnu.org; Sat, 15 May 2021 03:33:55 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:33155) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhoo5-00036W-K4 for help-gnu-emacs@gnu.org; Sat, 15 May 2021 03:33:55 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id BB2C4240026 for ; Sat, 15 May 2021 09:33:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.jp; s=2017; t=1621064029; bh=0thLjYR6bmWTsme7c2mnMirohcBxtL6D4wWPWvsXWb8=; h=Date:From:To:Subject:From; b=iP3E+TfB53FBchK/RjM3LuGMY/U2w2EgnyyQIKMzTw3txqm/d84QHWAjjCN/hyRhF ml2Rcz/pulI5TaNMDI8n0eNokAk4H2WOyfYJPlMF+AF47zgN/jUFUGGvbofWEmaILG Z0xY7yImfvfOQfpM5z/aPp5H5nGok0wRAIdzH5DNKUn5eoxUOZcmTaLv5LE8OgKnbN CwFfYT/BOC+N/oxg3PPPth2VsI4H2NczqRHRZKz+rypFssWLSt4/q0ik74Gc+CJHw8 AAm5ZL7MKbiLAfXrA0AALZglK+TGX44sxgOHLYIKYRDc8+C3ldLofnWeU7+p4/bxR7 GpEkxnvIEBtrg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FhxwF0YcCz6tm5 for ; Sat, 15 May 2021 09:33:48 +0200 (CEST) Original-Followup-To: help-gnu-emacs@gnu.org Received-SPF: pass client-ip=185.67.36.65; envelope-from=c.buhtz@posteo.jp; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129788 Archived-At: 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