From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Pittman Newsgroups: gmane.emacs.help Subject: Re: running from terminal Date: Sat, 24 May 2008 16:31:20 +1000 Organization: How about yours? Message-ID: <87fxs8z007.fsf@rimspace.net> References: <1e24a0b70805232123p1b001f0aj4947992b010d07d4@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211610944 28698 80.91.229.12 (24 May 2008 06:35:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 May 2008 06:35:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 24 08:36:22 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JznMc-00034a-7u for geh-help-gnu-emacs@m.gmane.org; Sat, 24 May 2008 08:36:22 +0200 Original-Received: from localhost ([127.0.0.1]:36882 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JznLr-0006FR-Fu for geh-help-gnu-emacs@m.gmane.org; Sat, 24 May 2008 02:35:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JznLY-0006FM-IK for help-gnu-emacs@gnu.org; Sat, 24 May 2008 02:35:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JznLW-0006F9-1S for help-gnu-emacs@gnu.org; Sat, 24 May 2008 02:35:15 -0400 Original-Received: from [199.232.76.173] (port=57620 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JznLV-0006F6-Rk for help-gnu-emacs@gnu.org; Sat, 24 May 2008 02:35:13 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:22509) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JznLV-00047n-Jd for help-gnu-emacs@gnu.org; Sat, 24 May 2008 02:35:13 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JznLU-0007aP-B9 for help-gnu-emacs@gnu.org; Sat, 24 May 2008 02:35:12 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1JznLK-000469-CI for help-gnu-emacs@gnu.org; Sat, 24 May 2008 06:35:02 +0000 Original-Received: from ppp59-167-189-244.static.internode.on.net ([59.167.189.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 May 2008 06:35:02 +0000 Original-Received: from daniel by ppp59-167-189-244.static.internode.on.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 May 2008 06:35:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 44 Original-Distribution: bofh Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp59-167-189-244.static.internode.on.net User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:FpElBsVCKYBuZA4E++CF/fmb5bU= X-detected-kernel: by mx20.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54289 Archived-At: phillc writes: > i am using ubuntu (gui) and to start emacs, i open a terminal and type > emacs. That seem cumbersome and unnecessary. Try starting it from a menu or other GUI shortcut, or running it from the "run program" widget provided by the distribution. > however, that then causes the terminal to stop, rendering it useless, > despite it still existing, until in cntrl - c out of it. No, it doesn't. The emacs process is running and connected to the terminal, even though it isn't using that. This is the normal, correct and expected behaviour of running a process from the command line.[1] > is there anyway to launch emacs without it being dependant upon the > terminal? Plenty. The first set of suggestions probably help. However, if you insist on starting the tool from a command shell inside a terminal and detaching it manually the invocation you are looking for would be[2]: ] emacs & disown; exit That would start emacs in the background, remove it from the bash process group of the shell, then exit the shell and, consequently, the graphical terminal emulator. HTH, HAND. Daniel Footnotes: [1] It has become fashionable for some GUI applications to fork themselves away from the controlling terminal, these days, but many tools still work the right ^W traditional way. [2] ...assuming you have the default setup of bash as a login shell, which seems a likely bet, or have used something similarly derived.