Re: [OT] Re: Anyone has a good mailcap RunningX test?
On Fri, Aug 04, 2000 at 12:42:59AM +0300, Mikko H?nninen wrote: Jan Houtsma [EMAIL PROTECTED] wrote on Thu, 03 Aug 2000: Only thing that works is manually unsetting $DISPLAY. Having $DISPLAY defined usually means that there's an X session running. Why do you have it defined anyway (in that telnet session) if you're not doing stuff from inside an X environment? I'd look into fixing whatever is setting that environment variable for your telnet session... Yes you are completely right. Thats exactly what i overlooked. I wasn't aware that it was set from my /etc/zshenv file and i have no idea why i ever put it in there anyways (must have been years ago already). I removed it and now its fine. Thanks, jan
Re: Anyone has a good mailcap RunningX test?
On Thu, Aug 03, 2000 at 12:00:32PM +0200, Jan Houtsma wrote: Where can i find a decent RunningX script? What i want is to run netscape only when i run mutt locally on my pc at home within the window manager. However when i am at work and telnet to my house and start mutt from there i don't want it to start netscape but lynx or w3m. Testing only $DISPLAY isn't good enough cause when i telnet to house it's still set to :0. And also X is found to be a running process because at home i only locked my screen. So i am looking for a way to test if i am running mutt really locally. I have the same situation, except that I run mutt on my workstation at work and telnet from home. I use the RunningX program available from http://www.fiction.net/blong/programs/mutt/autoview/RunningX.c Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | RF Communications Product Generation Unit | Spokane, Washington, USA
Re: Anyone has a good mailcap RunningX test?
On Thu, Aug 03, 2000 at 11:20:07AM -0700, Gary Johnson wrote: On Thu, Aug 03, 2000 at 12:00:32PM +0200, Jan Houtsma wrote: Where can i find a decent RunningX script? What i want is to run netscape only when i run mutt locally on my pc at home within the window manager. However when i am at work and telnet to my house and start mutt from there i don't want it to start netscape but lynx or w3m. Testing only $DISPLAY isn't good enough cause when i telnet to house it's still set to :0. And also X is found to be a running process because at home i only locked my screen. So i am looking for a way to test if i am running mutt really locally. I have the same situation, except that I run mutt on my workstation at work and telnet from home. I use the RunningX program available from http://www.fiction.net/blong/programs/mutt/autoview/RunningX.c I downloaded the program and tested it. If you feed it an option it says "yes" or "no" dependent upon if it would return 0 or 1. Regretfully it doesnt work. I tested it from another computer (windows box). From that box i log into my linux server (which happens to have X running) and when i run RunningX, it answers "yes". So thats wrong. Since i am not sitting at that computer it should answer "no". Because now when i run mutt and view an url it starts netscape on the server where i am not sitting an which i can not see! It should start lynx instead in the window i am sitting at at the other computer. Only thing that works is manually unsetting $DISPLAY. Are there other solutions??
Re: Anyone has a good mailcap RunningX test?
Never mind my stupid question. I just found a line DISPLAY=:0.0 in my /etc/zshenv file which always (so also at a telnet session) sets the DISPLAY variable, which caused netscape to start instead of lynx or w3m when, from mutt, i visited an url in a telnet window. I appologize and close this thread. btw mutt is a wonderful program! I even use it at work now. thanks, jan -- ___ ___ ___ / // // / Jan H. Houtsma / // // / Comeniushof 92 / // // /1216 HH Hilversum ___ / _ _ / Netherlands / / / // // / / /__/ // // / http://www.houtsma.net ///__//__/[EMAIL PROTECTED]
[OT] Re: Anyone has a good mailcap RunningX test?
Jan Houtsma [EMAIL PROTECTED] wrote on Thu, 03 Aug 2000: Only thing that works is manually unsetting $DISPLAY. Having $DISPLAY defined usually means that there's an X session running. Why do you have it defined anyway (in that telnet session) if you're not doing stuff from inside an X environment? I'd look into fixing whatever is setting that environment variable for your telnet session... Mikko -- // Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/ // The Corrs list maintainer // net.freak // DALnet IRC operator / // Interests: roleplaying, Linux, the Net, fantasy scifi, the Corrs / "You don't grow by age, you grow by mind" -- Lena Carin Molander