Article View: comp.windows.x
Article #38258Re: -display on command line and opening X connection.
From: Allan Murphy CS4
Date: Mon, 20 Jan 1992 11:17
Date: Mon, 20 Jan 1992 11:17
50 lines
3187 bytes
3187 bytes
Der Mouse writes: >I wrote: > >> Is there a standard technique / bit of code that X applications are >> supposed to carry out when the user specifies a display other than >> $DISPLAY ? > >I haven't seen anything noteworthy - just use the specified string in >the XOpenDisplay call instead of the default. > What I didn't write, ( *flame on* ) but should have written (ok,ok I'm allergic to large posts ), was that the application is a graphics demo for the networked machines in the CS department here; all of these machines use the same file server; you can login to any of them with the same username/password..... >> At the moment, my app. tries a straight XOpenDisplay, then if that >> doesn't work, it tries the following : >> assume the remote machine name is the display name ( possibly -":0.0" ) > >Remote machine name? What remote machine name? I thought we were >assuming the user specified an alternate display name, not machine >name. You are to correct to question this idea; I did so myself. But in the case of the networked machines here, I'm logged into hunter-10; the name of the display is hunter-10:0.0; and so on for hunter-09, etc. None of the machines have more than one display ( that I know of, anyway ) Since my app. is unlikely to be ported ( very unlikely ), this might ( covers his ass ) be a safe thing to do ?? This a graphics demo for twerps; none of them are going to try run it on a display connected to a machine outside this department.... they are liable to try something like % demo -display <machine>. I'm attempting to at least try to do what someone with no X knowledge whatsoever ( some may claim thats me as well - I might agree ) expects the package to do, based on the machine setup here. >> rsh to the remote machine and do an xhost +local machine name > > ( embarrassingly large list of problems with this idea removed in order to > preserve my ego by not having them posted twice ) This may be slightly more acceptable, given the above ? I don't deny any of the criticisms levelled at the above idea, I just think they are possibly less terrible given the local setup... In future I'll put more detail in my posts ( to save my ego ). Allan. amurphy@cs.strath.ac.uk
Technical Details
Message-ID:
<7978@baird.cs.strath.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!strath-cs!amurphyReferences:
<1992Jan12.121737.14962@trevan.uucp> <7880@baird.cs.strath.ac.uk> <1992Jan19.115413.4652@thunder.mcrcim.mcgill.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103734,7664f740ba377765 X-Google-Attributes: gid103734,public X-Google-Thread: 1048e3,7664f740ba377765 X-Google-Attributes: gid1048e3,public X-Google-Thread: 134180,7664f740ba377765 X-Google-Attributes: gid134180,public X-Google-ArrivalTime: 1992-01-20 05:37:59 PST Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!strath-cs!amurphy From: amurphy@cs.strath.ac.uk (Allan Murphy CS4) Newsgroups: comp.windows.x,comp.unix.sysv386,biz.sco.opendesktop Subject: Re: -display on command line and opening X connection. Message-ID: <7978@baird.cs.strath.ac.uk> Date: 20 Jan 92 11:17:37 GMT References: <1992Jan12.121737.14962@trevan.uucp> <7880@baird.cs.strath.ac.uk> <1992Jan19.115413.4652@thunder.mcrcim.mcgill.edu> Sender: news@cs.strath.ac.uk Organization: Comp. Sci. Dept., Strathclyde Univ., Glasgow, Scotland. Lines: 50 Nntp-Posting-Host: hunter-10