Re: Can't start xterm from Cygwin/X icon in system tray

2010-01-12 Thread Jim Reisert AD1C
After re-installing Cygwin from scratch, I have determined that this
environment variable is/was causing the problem:

CYGWIN=tty

Once I removed it, I was able to create an X term from the icon in the
system tray.

- Jim

On Wed, Dec 30, 2009 at 10:07 AM, I wrote:

 I have a very strange situation.

 At work, I am running Win XP SP3.  I installed all the latest Cygwin
 (1.7.1) + Xorg updates, including startxwin.exe.  Everything works
 perfectly.

 At home, I am running Windows 7 Professional, 64-bit.  I am unable to
 start an xterm from the Cygwin/X icon in the system tray (right-click,
 select xterm).  Both setups have the same line in .XWinrc:

        xterm      EXEC  xterm

 I am starting the X server the same way:

    D:\Cygwin\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startxwin.exe

 I do not have a ~/.startxwinrc file.  The xterm that is supposed to be
 created when the server starts doesn't start either.

 The symptom is that xterm.exe is shown running in the task manager,
 but there is no Xterm window on the desktop.

 As  a work-around, I created a shortcut on my desktop to start an xterm:

    D:\Cygwin\bin\run.exe /usr/bin/xterm -display localhost:0

 That works perfectly, but is not an optimum solution (I try to have as
 few desktop icons as possible).

 There is nothing in the /var/log/Xwin log that indicates why an xterm
 would start but not open a window.

 Any ideas?


-- 
Jim Reisert AD1C, jjreis...@alum.mit.edu, http://www.ad1c.us

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Can't start xterm from Cygwin/X icon in system tray

2010-01-02 Thread Yaakov (Cygwin/X)

On 01/01/2010 16:04, Jim Reisert AD1C wrote:

Yes, my startup folder shortcut is:

D:\Cygwin\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startxwin.exe

As I've said before, this works properly on my XP SP3 system at work,
but not on my Windows 7 64-bit system at home.


I run Win7 64bit as well and the shortcut WJFFM.

One thing I just realized tonight is that if you use keychain(1) and 
added the command to your ~/.bash_profile (as suggested in that 
manpage), AND you use the shortcut to launch XWin without having started 
a console session first, then the login shell in which we want to launch 
startxwin will wait indefinitely for your SSH password (which you won't 
see because we use run.exe).  Trying the shortcut again while this 
occurs should work after a ~30-sec delay.


The fix for that is to test the presence of an interactive shell before 
running keychain (see bash.info, section 6.3.2):


case $- in
*i*) eval `keychain --eval ~/.ssh/id_dsa` ;;
esac

Since you mention it's your home computer that's having issues, I can 
only guess this might be it.  If you're not using keychain, then we'll 
need to see your 'cygcheck -srv' output and your /var/log/XWin.0.log (as 
plain-text attachments).



Yaakov
Cygwin/X

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Can't start xterm from Cygwin/X icon in system tray

2010-01-02 Thread Jim Reisert AD1C

On 1/2/2010 10:01 PM, Yaakov (Cygwin/X) wrote:


Since you mention it's your home computer that's having issues, I can
only guess this might be it. If you're not using keychain, then we'll
need to see your 'cygcheck -srv' output and your /var/log/XWin.0.log (as
plain-text attachments).


Hi Yaakov,

I am not using keychain.   I disabled Microsoft Security Essentials.  I 
do not have an ~/.Xdefaults nor a ~/.startxwinrc file.


I've attached the output from cygcheck, as well as the Xwin log.  I got 
these warnings while running it:


/usr/bin/cygrunsrv: warning: OpenService failed for 'DcomLaunch': Win32 
error 5

Access is denied.

/usr/bin/cygrunsrv: warning: OpenService failed for 'odserv': Win32 error 5
Access is denied.

/usr/bin/cygrunsrv: warning: OpenService failed for 'ose': Win32 error 5
Access is denied.

/usr/bin/cygrunsrv: warning: OpenService failed for 'pla': Win32 error 5
Access is denied.

/usr/bin/cygrunsrv: warning: OpenService failed for 'QWAVE': Win32 error 5
Access is denied.

/usr/bin/cygrunsrv: warning: OpenService failed for 'RpcEptMapper': 
Win32 error 5

Access is denied.

/usr/bin/cygrunsrv: warning: OpenService failed for 'RpcSs': Win32 error 5
Access is denied.



--
Jim Reisert AD1C, jjreis...@alum.mit.edu, http://www.ad1c.us

Cygwin Configuration Diagnostics
Current System Time: Sat Jan 02 23:52:25 2010

Windows 7 Professional N Ver 6.1 Build 7600 

Running under WOW64 on AMD64

Path:   .\
D:\Home\bin
D:\Cygwin\usr\local\emacs\bin
D:\Cygwin\Bin
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
C:\Program
Files
(x86)\QuickTime\QTSystem\
C:\Program
Files
(x86)\Common
Files\Acronis\SnapAPI\
D:\utility\DISKEE~1\
D:\WATCOM\BINNT
D:\WATCOM\BINW

Output from D:\Cygwin\bin\id.exe
UID: 1001(Jim Reisert) GID: 513(None)
545(Users) 1000(HomeUsers)513(None)

SysDir: C:\Windows\system32
WinDir: C:\Windows

CYGWIN = 'tty'
HOME = '/cygdrive/d/Home'
PWD = '/cygdrive/d/Home'
USER = 'Jim Reisert'
LIBRARY_PATH = '/usr/lib/mingw'

ALLUSERSPROFILE = 'C:\ProgramData'
APPDATA = 'C:\Users\Jim Reisert\AppData\Roaming'
CLASSPATH = '.;C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip'
COMMONPROGRAMFILES = 'C:\Program Files (x86)\Common Files'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
CommonProgramW6432 = 'C:\Program Files\Common Files'
COMPUTERNAME = 'JJR'
COMSPEC = 'C:\Windows\system32\cmd.exe'
CVSROOT = 'F:\CVS'
CYGROOT = 'D:\Cygwin'
EDPATH = 'd:\WATCOM\EDDAT'
FP_NO_HOST_CHECK = 'NO'
HOMEDRIVE = 'C:'
HOMEPATH = '\Users\Jim Reisert'
INCLUDE = 'd:\WATCOM\H;d:\WATCOM\H\NT'
LANG = 'en_US.ISO-8859-1'
LANG_JJR = 'C'
LC_TIME_JJR = 'C'
LOCALAPPDATA = 'C:\Users\Jim Reisert\AppData\Local'
LOCALE_JJR = 'C.UTF-8'
LOGONSERVER = '\\JJR'
NUMBER_OF_PROCESSORS = '4'
OS = 'Windows_NT'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
PROCESSOR_ARCHITECTURE = 'x86'
PROCESSOR_ARCHITEW6432 = 'AMD64'
PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 15 Stepping 7, GenuineIntel'
PROCESSOR_LEVEL = '6'
PROCESSOR_REVISION = '0f07'
ProgramData = 'C:\ProgramData'
PROGRAMFILES = 'C:\Program Files (x86)'
ProgramFiles(x86) = 'C:\Program Files (x86)'
ProgramW6432 = 'C:\Program Files'
PSModulePath = 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\'
PUBLIC = 'C:\Users\Public'
QTJAVA = 'C:\Program Files (x86)\QuickTime\QTSystem\QTJava.zip'
SESSIONNAME = 'Console'
SYSTEMDRIVE = 'C:'
SYSTEMROOT = 'C:\Windows'
TEMP = '/cygdrive/c/Users/JIMREI~1/AppData/Local/Temp'
TERM = 'xterm'
TMP = '/cygdrive/c/Users/JIMREI~1/AppData/Local/Temp'
USERDOMAIN = 'JJR'
USERNAME = 'Jim Reisert'
USERPROFILE = 'C:\Users\Jim Reisert'
VS80COMNTOOLS = 'D:\Microsoft Visual Studio 8\Common7\Tools\'
WATCOM = 'd:\WATCOM'
WINDIR = 'C:\Windows'
WINDOWID = '10485797'
DISPLAY = 'localhost:0.0'
XTERM_VERSION = 'Cygwin 6.8.99.903(251)'
XTERM_LOCALE = 'en_US.ISO-8859-1'
LOGNAME = 'Jim Reisert'
XTERM_SHELL = '/bin/tcsh'
HOSTTYPE = 'i386-cygwin'
VENDOR = 'intel'
OSTYPE = 'cygwin'
MACHTYPE = 'i386'
SHLVL = '1'
GROUP = 'None'
HOST = 'JJR'
REMOTEHOST = 'JJR'
MANPATH = ':/usr/ssl/man'
CVSEDITOR = 'emacs'
G_SLICE = 'always-malloc'
DXSPIDER_ROOT = '/cygdrive/e/spider'

HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Cygwin\setup
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\D:\Cygwin'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'D:\cygwin'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: 1720b01b097bf4fc Path: D:\Cygwin

a:  fd  FAT  1Mb   0% CPUN   
c:  hd  NTFS 32765Mb  64% CP CS UN PA FC JJR
d:  hd  NTFS 32765Mb  25% CP CS UN PA FC Applications
e:  hd  NTFS 32765Mb  30% CP CS 

Re: Can't start xterm from Cygwin/X icon in system tray

2010-01-01 Thread Jim Reisert AD1C

On 12/31/2009 1:43 PM, Yaakov (Cygwin/X) wrote:


This sounds like it has nothing to do with startxwin. I can't reproduce
this, but do any of the following help:

1) creating a ~/.startxwinrc containing just xterm ?


Same problem.  No xterm.


2) changing that .startxwinrc to run xterm?


Pop-up:  Couldn't find xterm anywhere.  I even looked in the PATH

Same when I tried run /usr/bin/xterm (couldn't find /usr/bin/xterm 
anywhere etc.)



3) setting LANG=en_US.ISO-8859-1 ?


No change.


4) installing the font-daewoo-misc, font-isas-misc, and font-jis-misc
packages?


Those fonts are already installed.

As I said, I have a desktop icon for starting an XTERM that works.  It 
only doesn't work when trying to start the xterm from ~/.startxwinrc, 
or from the system tray.


- Jim


--
Jim Reisert AD1C, jjreis...@alum.mit.edu, http://www.ad1c.us

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Can't start xterm from Cygwin/X icon in system tray

2010-01-01 Thread john

Are you executing startxwin from a login shell? I use
\path\to\cygwin\bin\run.exe /bin/bash.exe -l -c /bin/startxwin.exe
and it works for me.

On Fri, 1 Jan 2010, Jim Reisert AD1C wrote:

 On 12/31/2009 1:43 PM, Yaakov (Cygwin/X) wrote:

  This sounds like it has nothing to do with startxwin. I can't reproduce
  this, but do any of the following help:
 
  1) creating a ~/.startxwinrc containing just xterm ?

 Same problem.  No xterm.

  2) changing that .startxwinrc to run xterm?

 Pop-up:  Couldn't find xterm anywhere.  I even looked in the PATH

 Same when I tried run /usr/bin/xterm (couldn't find /usr/bin/xterm anywhere
 etc.)

  3) setting LANG=en_US.ISO-8859-1 ?

 No change.

  4) installing the font-daewoo-misc, font-isas-misc, and font-jis-misc
  packages?

 Those fonts are already installed.

 As I said, I have a desktop icon for starting an XTERM that works.  It only
 doesn't work when trying to start the xterm from ~/.startxwinrc, or from the
 system tray.

 - Jim




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Can't start xterm from Cygwin/X icon in system tray

2010-01-01 Thread Jim Reisert AD1C

On 1/1/2010 12:41 PM, john wrote:



Are you executing startxwin from a login shell? I use
\path\to\cygwin\bin\run.exe /bin/bash.exe -l -c /bin/startxwin.exe
and it works for me.


Yes, my startup folder shortcut is:

D:\Cygwin\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startxwin.exe

As I've said before, this works properly on my XP SP3 system at work, 
but not on my Windows 7 64-bit system at home.


- Jim




On Fri, 1 Jan 2010, Jim Reisert AD1C wrote:


On 12/31/2009 1:43 PM, Yaakov (Cygwin/X) wrote:


This sounds like it has nothing to do with startxwin. I can't reproduce
this, but do any of the following help:

1) creating a ~/.startxwinrc containing just xterm?


Same problem.  No xterm.


2) changing that .startxwinrc to run xterm?


Pop-up:  Couldn't find xterm anywhere.  I even looked in the PATH

Same when I tried run /usr/bin/xterm (couldn't find /usr/bin/xterm anywhere
etc.)


3) setting LANG=en_US.ISO-8859-1 ?


No change.


4) installing the font-daewoo-misc, font-isas-misc, and font-jis-misc
packages?


Those fonts are already installed.

As I said, I have a desktop icon for starting an XTERM that works.  It only
doesn't work when trying to start the xterm from ~/.startxwinrc, or from the
system tray.

- Jim


--
Jim Reisert AD1C, jjreis...@alum.mit.edu, http://www.ad1c.us

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Can't start xterm from Cygwin/X icon in system tray

2009-12-31 Thread dahaiou


Jim Reisert AD1C wrote:
 
 I am unable to start an xterm from the Cygwin/X icon in the system tray
 (right-click, select xterm).  Both setups have the same line in .XWinrc:
 xterm  EXEC  xterm
 As  a work-around, I created a shortcut on my desktop to start an xterm:
 D:\Cygwin\bin\run.exe /usr/bin/xterm -display localhost:0
 That works perfectly,

What exact command is mapped to the xterm label in the right-click tray
menu? It's configured in an init file somewhere though I can't remember the
filename right now.

Can you check whether the DISPLAY variable is set in the xterm process
started from the tray menu? If it isn't, that would explain it.


-- 
View this message in context: 
http://old.nabble.com/Can%27t-start-xterm-from-Cygwin-X-icon-in-system-tray-tp26969798p26977792.html
Sent from the cygwin-xfree mailing list archive at Nabble.com.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Can't start xterm from Cygwin/X icon in system tray

2009-12-31 Thread Jim Reisert AD1C
On Thu, Dec 31, 2009 at 6:33 AM, dahaiou wrote:


 Jim Reisert AD1C wrote:

 I am unable to start an xterm from the Cygwin/X icon in the system tray
 (right-click, select xterm).  Both setups have the same line in .XWinrc:
         xterm      EXEC  xterm
 As  a work-around, I created a shortcut on my desktop to start an xterm:
     D:\Cygwin\bin\run.exe /usr/bin/xterm -display localhost:0
 That works perfectly,

 What exact command is mapped to the xterm label in the right-click tray
 menu? It's configured in an init file somewhere though I can't remember the
 filename right now.

which points to /usr/bin/xterm

 Can you check whether the DISPLAY variable is set in the xterm process
 started from the tray menu? If it isn't, that would explain it.

I tried this explicitly:

 xterm  EXEC  xterm -display localhost:0

That didn't make a difference.

One other piece of data:  I modifed ~/.XWinrc and then clicked Reload
.xwinrc from the menu in the system tray. This KILLED the X server!

- Jim


-- 
Jim Reisert AD1C, jjreis...@alum.mit.edu, http://www.ad1c.us

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Can't start xterm from Cygwin/X icon in system tray

2009-12-31 Thread Ken Brown

On 12/31/2009 10:53 AM, john at asyn dot org wrote:

On Thu, 31 Dec 2009, Jim Reisert AD1C wrote:

Jim Reisert AD1C wrote:


I am unable to start an xterm from the Cygwin/X icon in the system tray
(right-click, select xterm).  Both setups have the same line in .XWinrc:
 xterm  EXEC  xterm
As  a work-around, I created a shortcut on my desktop to start an xterm:
 D:\Cygwin\bin\run.exe /usr/bin/xterm -display localhost:0
That works perfectly,

[...]

I tried this explicitly:

  xterm  EXEC  xterm -display localhost:0

That didn't make a difference.

One other piece of data:  I modifed ~/.XWinrc and then clicked Reload
.xwinrc from the menu in the system tray. This KILLED the X server!


 I had this problem. It was happening because PATH was not being set.
 The problem went away when I used /startxwin.bat instead of
 /bin/startxwin.exe.

If PATH is not being set, then you're probably not running startxwin.exe 
from a login shell.  See


  http://cygwin.com/ml/cygwin-xfree/2009-12/msg00117.html

Ken

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Can't start xterm from Cygwin/X icon in system tray

2009-12-31 Thread Yaakov (Cygwin/X)

On 30/12/2009 11:07, Jim Reisert AD1C wrote:

I do not have a ~/.startxwinrc file.  The xterm that is supposed to be
created when the server starts doesn't start either.

The symptom is that xterm.exe is shown running in the task manager,
but there is no Xterm window on the desktop.


This sounds like it has nothing to do with startxwin.  I can't reproduce 
this, but do any of the following help:


1) creating a ~/.startxwinrc containing just xterm ?

2) changing that .startxwinrc to run xterm?

3) setting LANG=en_US.ISO-8859-1 ?

4) installing the font-daewoo-misc, font-isas-misc, and font-jis-misc 
packages?



Yaakov
Cygwin/X

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/