This is the mail archive of the cygwin-xfree mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems Starting Xterm using the System Tray Icon for XWin Server


On 18 February 2010 21:22, Mike Ayers <mike_ayers@tvworks.com> wrote:
> ? ? ? ?My wild guess is that you have a typo in .bashrc which prevents all the startup happening. ?in your system tray launched window, make sure you are in your home directory, then run '. .bashrc' (note that first period!) and see if there are any error messages. ?You can also edit .bashrc and put 'set -x' as the first line for verbose output.

I added the 'set -x' to the first line of my .bashrc file and then ran
'. .bashrc' and this is the output

> ++ set -x
> ++ unset TMP
> ++ unset TEMP
> ++ alias 'df=df -h'
> ++ alias 'du=du -h'
> ++ alias 'grep=grep --color'
> ++ alias 'ls=ls -h --color=auto'
> ++ alias 'll=ls -l'
> ++ alias 'la=ls -A'
> ++ alias 'l=ls -CF'
> ++ alias 'vsim=explorer.exe $(cygpath -w /cygdrive/c/modeltech_6.5c/win32/modelsim.exe)'
> ++ alias 'gimp=explorer.exe $(cygpath -w /cygdrive/c/Program\ Files/GIMP-2.0/bin/gimp-2.6.exe)'
> ++ alias 'firefox=explorer.exe $(cygpath -w /cygdrive/c/Program\ Files/Mozilla\ Firefox/firefox.exe)'
> ++ PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '

Then I executed the short cut

> C:\cygwin\bin\run.exe /usr/bin/xterm -ls -display 127.0.0.1:0.0

and this is the output:

> ++ unset TEMP
> ++ alias 'df=df -h'
> ++ alias 'du=du -h'
> ++ alias 'grep=grep --color'
> ++ alias 'ls=ls -h --color=auto'
> ++ alias 'll=ls -l'
> ++ alias 'la=ls -A'
> ++ alias 'l=ls -CF'
> ++ alias 'vsim=explorer.exe $(cygpath -w /cygdrive/c/modeltech_6.5c/win32/modelsim.exe)'
> ++ alias 'gimp=explorer.exe $(cygpath -w /cygdrive/c/Program\ Files/GIMP-2.0/bin/gimp-2.6.exe)'
> ++ alias 'firefox=explorer.exe $(cygpath -w /cygdrive/c/Program\ Files/Mozilla\ Firefox/firefox.exe)'
> ++ PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
> + '[' -d /home/craig/bin ']'
> + PATH='/home/craig/bin:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/Program Files/MiKTeX 2.7/miktex/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Program Files/Common Files/Roxio Shared/10.0/DLLShared/:/cygdrive/c/Program Files/Common Files/Roxio Shared/DLLShared/:/cygdrive/c/modeltech_6.5c/win32:/cygdrive/c/Users/craig/Software/ant-1.7.1/apache-ant-1.7.1/bin:/cygdrive/c/Program Files/Java/jdk1.6.0_16/bin'
> + PATH='/cygdrive/c/Users/craig/Programming/scripts:/home/craig/bin:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/Program Files/MiKTeX 2.7/miktex/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Program Files/Common Files/Roxio Shared/10.0/DLLShared/:/cygdrive/c/Program Files/Common Files/Roxio Shared/DLLShared/:/cygdrive/c/modeltech_6.5c/win32:/cygdrive/c/Users/craig/Software/ant-1.7.1/apache-ant-1.7.1/bin:/cygdrive/c/Program Files/Java/jdk1.6.0_16/bin'
> + PATH=/cygdrive/c/Program
> + Files/MiKTeX 2.7/miktex/bin:/cygdrive/c/Users/craig/Programming/scripts:/home/craig/bin:/usr/local/bin:/usr/bin:/bin:/cygdrive/c/Program Files/MiKTeX 2.7/miktex/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Program Files/Common Files/Roxio Shared/10.0/DLLShared/:/cygdrive/c/Program Files/Common Files/Roxio Shared/DLLShared/:/cygdrive/c/modeltech_6.5c/win32:/cygdrive/c/Users/craig/Software/ant-1.7.1/apache-ant-1.7.1/bin:/cygdrive/c/Program Files/Java/jdk1.6.0_16/bin
> -bash: Files/MiKTeX: No such file or directory

It looks like it is trying to set the path 3 times and the 3rd time is
the one that is causing problems because its not using ' marks around
the path parameter. However, here are the contents of my .bashrc file:

> set -x
> unset TMP
> unset TEMP
> alias df='df -h'
> alias du='du -h'
> alias grep='grep --color'
> alias ls='ls -h --color=auto'
> alias ll='ls -l'
> alias la='ls -A'
> alias l='ls -CF'
> alias vsim='explorer.exe $(cygpath -w /cygdrive/c/modeltech_6.5c/win32/modelsim.exe)'
> alias gimp='explorer.exe $(cygpath -w /cygdrive/c/Program\ Files/GIMP-2.0/bin/gimp-2.6.exe)'
> alias firefox='explorer.exe $(cygpath -w /cygdrive/c/Program\ Files/Mozilla\ Firefox/firefox.exe)'
> PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '

As you can see, I don't set the PATH variable! Weird.

Craig

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]