public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* X Server shortcut removed from start menu?
@ 2011-10-18 18:59 Ryan Johnson
  2011-10-19 11:43 ` Jon TURNEY
  0 siblings, 1 reply; 7+ messages in thread
From: Ryan Johnson @ 2011-10-18 18:59 UTC (permalink / raw)
  To: cygwin-xfree

Hi all,

I recently upgraded to the latest cygwin/x and my start menu no longer 
contains a shortcut to start the x-server -- the thing there is a 
shortcut for xterm. Is there a packaging change that I wasn't aware of 
or is this a bug?

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


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

* Re: X Server shortcut removed from start menu?
  2011-10-18 18:59 X Server shortcut removed from start menu? Ryan Johnson
@ 2011-10-19 11:43 ` Jon TURNEY
  2011-10-19 11:56   ` Ryan Johnson
  0 siblings, 1 reply; 7+ messages in thread
From: Jon TURNEY @ 2011-10-19 11:43 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: ryan.johnson

On 18/10/2011 19:58, Ryan Johnson wrote:
> I recently upgraded to the latest cygwin/x and my start menu no longer
> contains a shortcut to start the x-server -- the thing there is a shortcut for
> xterm. Is there a packaging change that I wasn't aware of or is this a bug?

This should not have changed.  Those start menu links should have been created 
when the xinit package is installed, by the /etc/postinstall/xinit.sh script. 
  You might want to take a look at /var/log/setup.log and see if that script 
ran successfully.

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

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


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

* Re: X Server shortcut removed from start menu?
  2011-10-19 11:43 ` Jon TURNEY
@ 2011-10-19 11:56   ` Ryan Johnson
  2011-10-19 13:40     ` Jon TURNEY
  0 siblings, 1 reply; 7+ messages in thread
From: Ryan Johnson @ 2011-10-19 11:56 UTC (permalink / raw)
  To: cygwin-xfree

On 19/10/2011 7:43 AM, Jon TURNEY wrote:
> On 18/10/2011 19:58, Ryan Johnson wrote:
>> I recently upgraded to the latest cygwin/x and my start menu no longer
>> contains a shortcut to start the x-server -- the thing there is a 
>> shortcut for
>> xterm. Is there a packaging change that I wasn't aware of or is this 
>> a bug?
>
> This should not have changed.  Those start menu links should have been 
> created when the xinit package is installed, by the 
> /etc/postinstall/xinit.sh script.  You might want to take a look at 
> /var/log/setup.log and see if that script ran successfully.
>
Heh. The postinstall/xinit.sh script has  failed to run every time I've 
run setup.exe in the last 9 months.
> 2011/10/18 14:57:13 Running preremove script for  X-start-menu-icons
> 2011/10/18 14:57:13 running: c:\cygwin\bin\bash.exe --norc --noprofile 
> /etc/preremove/X-start-menu-icons.sh
> 2011/10/18 14:57:14 Uninstalling X-start-menu-icons
> 2011/10/18 14:57:14 Extracting from 
> file://C:\Users\Ryan\Downloads\cygwin/http%3a%2f%2fmirror.csclub.uwaterloo.ca%2fcygwin%2f/release/X11/X-start-menu-icons/X-start-menu-icons-1.0.4-1.tar.bz2
> 2011/10/18 14:57:14 Changing gid back to original
> 2011/10/18 14:57:14 running: c:\cygwin\bin\bash.exe --norc --noprofile 
> /etc/postinstall/X-start-menu-icons.sh
> 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?

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/


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

* Re: X Server shortcut removed from start menu?
  2011-10-19 11:56   ` Ryan Johnson
@ 2011-10-19 13:40     ` Jon TURNEY
  2011-10-19 14:12       ` Ryan Johnson
  0 siblings, 1 reply; 7+ messages in thread
From: Jon TURNEY @ 2011-10-19 13:40 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: ryan.johnson

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?

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

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


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

* Re: X Server shortcut removed from start menu?
  2011-10-19 13:40     ` Jon TURNEY
@ 2011-10-19 14:12       ` Ryan Johnson
  2011-10-20 10:47         ` Jon TURNEY
  0 siblings, 1 reply; 7+ messages in thread
From: Ryan Johnson @ 2011-10-19 14:12 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: Jon TURNEY

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 ...)? I tried peeking inside the .sh files but 
they're greek to me.

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/


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

* Re: X Server shortcut removed from start menu?
  2011-10-19 14:12       ` Ryan Johnson
@ 2011-10-20 10:47         ` Jon TURNEY
  2011-10-20 14:12           ` Ryan Johnson
  0 siblings, 1 reply; 7+ messages in thread
From: Jon TURNEY @ 2011-10-20 10:47 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: ryan.johnson

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?

 > I tried peeking inside the .sh files but they're greek to me.

It's only 2 lines! :-)

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

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


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

* Re: X Server shortcut removed from start menu?
  2011-10-20 10:47         ` Jon TURNEY
@ 2011-10-20 14:12           ` Ryan Johnson
  0 siblings, 0 replies; 7+ messages in thread
From: Ryan Johnson @ 2011-10-20 14:12 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: Jon TURNEY

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/


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

end of thread, other threads:[~2011-10-20 14:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-18 18:59 X Server shortcut removed from start menu? Ryan Johnson
2011-10-19 11:43 ` Jon TURNEY
2011-10-19 11:56   ` Ryan Johnson
2011-10-19 13:40     ` Jon TURNEY
2011-10-19 14:12       ` Ryan Johnson
2011-10-20 10:47         ` Jon TURNEY
2011-10-20 14:12           ` Ryan Johnson

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).