LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-15-2006, 07:21 PM   #1
kav
Member
 
Registered: May 2006
Location: USA
Distribution: FreeBSD Ubuntu Debian
Posts: 137

Rep: Reputation: 15
Sneaking an application under X11


There are certain programs that behave very differently when run from the console and a terminal within X. For this example I'll use the most obvious, emacs. Everyone probably knows what emacs looks like from the console so I won't waste your time, but when run from a terminal in X I get a whole new window with a graphical interface on a white background(yuck). Now I'm not saying that's bad, some people who use this computer dont want me changing their stuff.

What I want to know is how do I trick an application into running like it's only in a console and not run like it usually does when run in a window manager. I'm looking for a non emacs specific answer because I would like to know how to do this for other programs too.

I'm running Debian unstable x86 with fluxbox as the window manager with eterm terminals in case the answer would be specific to any part of my environment. This has been bugging me for a while and I haven't found so much as a clue as to how to do it and any insight would be appreciated.
 
Old 05-15-2006, 09:35 PM   #2
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
Unset the DISPLAY environment variable from the terminal you want to run the app from.

Many such apps provide a switch for this behavior anyway (for Emacs, it's -nox).
 
Old 05-15-2006, 11:03 PM   #3
kav
Member
 
Registered: May 2006
Location: USA
Distribution: FreeBSD Ubuntu Debian
Posts: 137

Original Poster
Rep: Reputation: 15
That is exactly what I wanted to know, thank you. How do I reset DISPLAY without opening up another terminal?
# DISPLAY=:0.0 didn't do it.
 
Old 05-16-2006, 02:32 AM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Code:
DISPLAY=false emacs
Maybe?
 
Old 05-20-2006, 11:04 AM   #5
Hosiah
Member
 
Registered: Sep 2004
Location: Des Moines, Iowa
Distribution: Slackware, Mandriva, Debian derivatives, +BSD/ Solaris/ Minix/ plan9/ GNU/HURD...
Posts: 185

Rep: Reputation: 31
"emacs -nw" will start Emacs in a terminal and it will behave in your terminal just like it was running in a console. Screen shot here. (In a post I *desperately* need to re-do...)

As for "non-Emacs-specific", I don't know, but there aren't any programs that I can think of *besides* Emacs that have different flavors for terminal and X11. The Emacs that you're getting in X11 is in reality "XEmacs".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Core 4 - X11-devel complains about X11-libs which are installed Ephracis Fedora 3 09-05-2005 09:32 AM
xorg-x11-libs required by xorg-x11-devel darknails Fedora 1 01-13-2005 02:34 PM
remote application X11 forewording not working exodist Linux - Software 7 07-28-2004 09:08 AM
how i migrate windows application to Linux base application vandarakalpesh Linux - Software 0 06-26-2004 03:34 AM
Roaming X11/Xfree86, X11 proxy zapp Linux - Software 1 09-12-2003 08:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration