public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Thanks and a question
@ 2004-01-13 19:35 Greg Freemyer
  2004-01-13 19:44 ` Harold L Hunt II
  2004-01-13 19:45 ` Igor Pechtchanski
  0 siblings, 2 replies; 5+ messages in thread
From: Greg Freemyer @ 2004-01-13 19:35 UTC (permalink / raw)
  To: cygwin-xfree

Harold,

Your work on the clipboard with xdmcp capability is greatly
appreciated.  

>From my minimal testing it works great.  

Now that the startup batch script can be simplified to a one liner, I
want to directly invoke "Xwin -query" from my desktop without first
launching a bash console.

ie. I currently launch a bash script, then run my batch script.  It
would be nice to instead just double click an icon on my desktop.

I have setup a shortcut to XWin.exe on my desktop, but it is not
working.

Currently I am getting an error about a missing DLL.  Unfortunately I
need dlls from both /cygwin/bin and /cygwin/usr/X11R6/bin, so just
changing the startup directory is not quite enough.

Is there a recommended way to get this to work?  

ie. Adding a shortcut (or a cygwin hardlink) to the cygcygipc-2.dll in
X11R6/bin 


Thanks Again
Greg
-- 
Greg Freemyer




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Thanks and a question
  2004-01-13 19:35 Thanks and a question Greg Freemyer
@ 2004-01-13 19:44 ` Harold L Hunt II
  2004-01-13 19:45 ` Igor Pechtchanski
  1 sibling, 0 replies; 5+ messages in thread
From: Harold L Hunt II @ 2004-01-13 19:44 UTC (permalink / raw)
  To: cygwin-xfree

Greg,

Just edit startxdmcp.bat (or copy startwin.bat, comment out the line 
that starts xterm, and remove the -multiwindow parameter) and name it 
"foohost.bat".  Leave it in /usr/X11R6/bin.  Then, create a shortcut to 
that batch file with Windows Explorer (note: you can then change the 
icon for the shortcut and point it to the icon in XWin.exe).  Then, copy 
and paste that shortcut on your desktop.  Everything will work fine. 
This is the method that I always use.

Harold

Greg Freemyer wrote:

> Harold,
> 
> Your work on the clipboard with xdmcp capability is greatly
> appreciated.  
> 
>>From my minimal testing it works great.  
> 
> Now that the startup batch script can be simplified to a one liner, I
> want to directly invoke "Xwin -query" from my desktop without first
> launching a bash console.
> 
> ie. I currently launch a bash script, then run my batch script.  It
> would be nice to instead just double click an icon on my desktop.
> 
> I have setup a shortcut to XWin.exe on my desktop, but it is not
> working.
> 
> Currently I am getting an error about a missing DLL.  Unfortunately I
> need dlls from both /cygwin/bin and /cygwin/usr/X11R6/bin, so just
> changing the startup directory is not quite enough.
> 
> Is there a recommended way to get this to work?  
> 
> ie. Adding a shortcut (or a cygwin hardlink) to the cygcygipc-2.dll in
> X11R6/bin 
> 
> 
> Thanks Again
> Greg


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Thanks and a question
  2004-01-13 19:35 Thanks and a question Greg Freemyer
  2004-01-13 19:44 ` Harold L Hunt II
@ 2004-01-13 19:45 ` Igor Pechtchanski
  2004-01-13 20:16   ` Greg Freemyer
  1 sibling, 1 reply; 5+ messages in thread
From: Igor Pechtchanski @ 2004-01-13 19:45 UTC (permalink / raw)
  To: cygwin-xfree, freemyer-ml

On Tue, 13 Jan 2004, Greg Freemyer wrote:

> Harold,
>
> Your work on the clipboard with xdmcp capability is greatly
> appreciated.
>
> >From my minimal testing it works great.
>
> Now that the startup batch script can be simplified to a one liner, I
> want to directly invoke "Xwin -query" from my desktop without first
> launching a bash console.
>
> ie. I currently launch a bash script, then run my batch script.  It
> would be nice to instead just double click an icon on my desktop.
>
> I have setup a shortcut to XWin.exe on my desktop, but it is not
> working.
>
> Currently I am getting an error about a missing DLL.  Unfortunately I
> need dlls from both /cygwin/bin and /cygwin/usr/X11R6/bin, so just
> changing the startup directory is not quite enough.
>
> Is there a recommended way to get this to work?
>
> ie. Adding a shortcut (or a cygwin hardlink) to the cygcygipc-2.dll in
> X11R6/bin
>
> Thanks Again
> Greg

Greg,

Just add both c:/cygwin/bin and c:/cygwin/usr/X11R6/bin to the end of your
Windows PATH variable.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Thanks and a question
  2004-01-13 19:45 ` Igor Pechtchanski
@ 2004-01-13 20:16   ` Greg Freemyer
  2004-01-13 20:23     ` Harold L Hunt II
  0 siblings, 1 reply; 5+ messages in thread
From: Greg Freemyer @ 2004-01-13 20:16 UTC (permalink / raw)
  To: cygwin-xfree

On Tue, 2004-01-13 at 14:45, Igor Pechtchanski wrote:
> On Tue, 13 Jan 2004, Greg Freemyer wrote:
> 
> > Harold,
> >
> > Your work on the clipboard with xdmcp capability is greatly
> > appreciated.
> >
> > >From my minimal testing it works great.
> >
> > Now that the startup batch script can be simplified to a one liner, I
> > want to directly invoke "Xwin -query" from my desktop without first
> > launching a bash console.
> >
> > ie. I currently launch a bash script, then run my batch script.  It
> > would be nice to instead just double click an icon on my desktop.
> >
> > I have setup a shortcut to XWin.exe on my desktop, but it is not
> > working.
> >
> > Currently I am getting an error about a missing DLL.  Unfortunately I
> > need dlls from both /cygwin/bin and /cygwin/usr/X11R6/bin, so just
> > changing the startup directory is not quite enough.
> >
> > Is there a recommended way to get this to work?
> >
> > ie. Adding a shortcut (or a cygwin hardlink) to the cygcygipc-2.dll in
> > X11R6/bin
> >
> > Thanks Again
> > Greg
> 
> Greg,
> 
> Just add both c:/cygwin/bin and c:/cygwin/usr/X11R6/bin to the end of your
> Windows PATH variable.
> 	Igor

Thanks Igor,

It worked great, and Harold this just seems cleaner than the approach
you gave.  This way the windows shortcut is pointing directly at
XWin.exe and there is no excess overhead associated with starting a bash
shell up.

If anyone cares, the PATH variable for Win2K is set by 
    right clicking 'my computer'
    properties
    advanced tab
    environment variables
    system variables

Greg


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Thanks and a question
  2004-01-13 20:16   ` Greg Freemyer
@ 2004-01-13 20:23     ` Harold L Hunt II
  0 siblings, 0 replies; 5+ messages in thread
From: Harold L Hunt II @ 2004-01-13 20:23 UTC (permalink / raw)
  To: cygwin-xfree

Greg,

Greg Freemyer wrote:

> On Tue, 2004-01-13 at 14:45, Igor Pechtchanski wrote:
> 
>>On Tue, 13 Jan 2004, Greg Freemyer wrote:
>>
>>
>>>Harold,
>>>
>>>Your work on the clipboard with xdmcp capability is greatly
>>>appreciated.
>>>
>>>>From my minimal testing it works great.
>>>
>>>Now that the startup batch script can be simplified to a one liner, I
>>>want to directly invoke "Xwin -query" from my desktop without first
>>>launching a bash console.
>>>
>>>ie. I currently launch a bash script, then run my batch script.  It
>>>would be nice to instead just double click an icon on my desktop.
>>>
>>>I have setup a shortcut to XWin.exe on my desktop, but it is not
>>>working.
>>>
>>>Currently I am getting an error about a missing DLL.  Unfortunately I
>>>need dlls from both /cygwin/bin and /cygwin/usr/X11R6/bin, so just
>>>changing the startup directory is not quite enough.
>>>
>>>Is there a recommended way to get this to work?
>>>
>>>ie. Adding a shortcut (or a cygwin hardlink) to the cygcygipc-2.dll in
>>>X11R6/bin
>>>
>>>Thanks Again
>>>Greg
>>
>>Greg,
>>
>>Just add both c:/cygwin/bin and c:/cygwin/usr/X11R6/bin to the end of your
>>Windows PATH variable.
>>	Igor
> 
> 
> Thanks Igor,
> 
> It worked great, and Harold this just seems cleaner than the approach
> you gave.  This way the windows shortcut is pointing directly at
> XWin.exe and there is no excess overhead associated with starting a bash
> shell up.

Since when did batch files require bash shells?  Did you notice the .bat 
extension?  Those are run by Windows and let me tell you, ain't no way 
you are going to avoid the overhead of running Windows :)

> If anyone cares, the PATH variable for Win2K is set by 
>     right clicking 'my computer'
>     properties
>     advanced tab
>     environment variables
>     system variables

Or press [Windows Key] + PrinttScreen and resume at the Advanced tab step.

The reason I will never advise users to set their PATHs like this is 
because we will inevitably have users that install once to d:\cygwin, 
then remove that installation and reinstall later to c:\cygwin, but 
forget that they have done this.  They will then insist that they setup 
the PATH as described (without double-checking to verify, of course), 
and will persist at complaining about how this doesn't work.  Making a 
shortcut to the batch file sets the path based on the location of the 
batch file, which cannot be screwed up; if a user had a dead shortcut 
they would get a warning about not being able to find the target of the 
shortcut instead of some vague message about a DLL not being found.

There is a method to this madness...

Harold


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-01-13 20:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-13 19:35 Thanks and a question Greg Freemyer
2004-01-13 19:44 ` Harold L Hunt II
2004-01-13 19:45 ` Igor Pechtchanski
2004-01-13 20:16   ` Greg Freemyer
2004-01-13 20:23     ` Harold L Hunt II

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).