This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: X Server shortcut removed from start menu?
On 20/10/2011 6:47 AM, Jon TURNEY wrote:
On 19/10/2011 15:11, Ryan Johnson wrote:
On 19/10/2011 9:40 AM, Jon TURNEY wrote:
On 19/10/2011 12:55, Ryan Johnson wrote:
2011/10/18 14:57:17 running: c:\cygwin\bin\bash.exe --norc
--noprofile
/etc/postinstall/xinit.sh
2011/10/18 14:57:17 abnormal exit: exit code=3
I guess something different than usual went wrong? What's the best
way to
debug it?
The full output of the shell commands for the most recent run of
setup can
be found in /var/log/setup.log.full
You might also try to run that bash command manually (perhaps with an
additional -x after --noprofile) and see what's going wrong?
This looks like the culprit:
mkshortcut: Saving "C:\ProgramData\Microsoft\Windows\Start
Menu\Programs\C:\cygwin\Cygwin-X\XWin Server.lnk" failed; does the
target
directory exist?
Missing $(basename ...)?
No, that's not the reason.
The file mkshortcut should be trying to create is
"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Cygwin-X\XWin
Server.lnk" i.e. adding the relative path "Cygwin-X\XWin Server.lnk"
to your all users start menu programs directory.
I guess for some unknown reason, mkshortcut's use of
cygwin_conv_to_win32_path() thinks "Cygwin-X\XWin Server" is an
absolute path, rather than a relative one, and converts it to an
absolute windows path. Do you have a /Cygwin-X directory or mount point?
Nope. I never mess with mount points; I just create soft links if I need
easy access to something.
> I tried peeking inside the .sh files but they're greek to me.
It's only 2 lines! :-)
Neither of which contains obvious code that would cause the above to
occur, and both of which succeed when run manually:
$ /usr/bin/mkshortcut -P -i /usr/bin/XWin.exe -n "Cygwin-X/XWin
Server" -a "/usr/bin/bash.exe -l -c /usr/bin/startxwin.exe"
/usr/bin/run.exe
mkshortcut: Saving
"C:\Users\Ryan\AppData\Roaming\Microsoft\Windows\Start
Menu\Programs\Cygwin-X\XWin Server.lnk" failed; does the target
directory exist?
$ /usr/bin/mkshortcut -A -P -i /usr/bin/XWin.exe -n "Cygwin-X/XWin
Server" -a "/usr/bin/bash.exe -l -c /usr/bin/startxwin.exe"
/usr/bin/run.exe
The first failed only because I hadn't called mkdir -p first; the second
succeeded and I now have the shortcut.
Thoughts?
Ryan
--
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/