[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    RE: [PATCH try2 2/2] winemenubuilder: Wait for application icons to
From:       "Koshelev, Misha Vladislavo" <mk144210 () bcm ! tmc ! edu>
Date:       2007-06-27 14:03:39
Message-ID: 10C24F7C4D05EB45B5F0E1B397897849010F7E59 () BCMEVS7 ! ad ! bcm ! edu
[Download RAW message or body]

--===============8975915570845759798==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C7B8C4.2C7F341C"

This is a multi-part message in MIME format.


> From: Alexandre Julliard [mailto:julliard@winehq.org]
> Sent: Wed 6/27/2007 8:42 AM
> To: Koshelev, Misha Vladislavo
> Cc: Hans Leidekker; wine-devel@winehq.org
> Subject: Re: [PATCH try2 2/2] winemenubuilder: Wait for application icons to be \
> created instead of adding a >RunOnce entry that may never run. Misha Koshelev \
> <mk144210@bcm.edu> writes: 
> > Hmm... I was not aware of this (that means that make change.ok in
> > dlls/kernel32/tests fails on non-Linux systems?). What happens in these
> > other non-Linux systems... does FindFirstChangeNotification return
> > INVALID_HANDLE_VALUE or succeed and just never satisfy the wait
> > condition?
> 
> It will never satisfy the wait. That can happen on older Linux kernels
> too, or on network file systems. You can't rely on change
> notifications, they are just a hint.
> 
> > The good thing about the __wine_make_system_process wait we are also
> > waiting for is that it will get satisfied when all user processes have
> > closed and create links then as well. This is actually sufficient in
> > itself for some installers (Vector NTI), but not others that launch apps
> > while installing (iTunes). Perhaps I can add a long timeout to the wait
> > to account for these other non-Linux platforms...
> 
> A better approach would probably be to simply wait for the parent
> process to exit.

Good point. This would probably avoid the __wine_make_system_process call altogether
too. Will resubmit again prob sometime tonight.
 
Misha


[Attachment #3 (text/html)]

<HTML dir=ltr><HEAD><TITLE>Re: [PATCH try2 2/2] winemenubuilder: Wait for application \
icons to be created instead of adding a RunOnce entry that may never run.</TITLE> \
<META http-equiv=Content-Type content="text/html; charset=unicode"> <META \
content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD> <BODY>
<DIV id=idOWAReplyText24307 dir=ltr>
<DIV dir=ltr><FONT face=Tahoma size=2><B>&gt;From:</B> Alexandre Julliard \
[mailto:julliard@winehq.org]<BR><B>&gt;Sent:</B> Wed 6/27/2007 8:42 \
AM<BR><B>&gt;To:</B> Koshelev, Misha Vladislavo<BR><B>&gt;Cc:</B> Hans Leidekker; \
wine-devel@winehq.org<BR><B>&gt;Subject:</B> Re: [PATCH try2 2/2] winemenubuilder: \
Wait for application icons to be created instead of adding a &gt;RunOnce entry that \
may never run.<BR></FONT><FONT size=2>&gt;Misha Koshelev &lt;mk144210@bcm.edu&gt; \
writes:<BR>&gt;<BR>&gt;&gt; Hmm... I was not aware of this (that means that make \
change.ok in<BR>&gt;&gt; dlls/kernel32/tests fails on non-Linux systems?). What \
happens in these<BR>&gt;&gt; other non-Linux systems... does \
FindFirstChangeNotification return<BR>&gt;&gt; INVALID_HANDLE_VALUE or succeed and \
just never satisfy the wait<BR>&gt;&gt; condition?<BR>&gt;<BR>&gt;It will never \
satisfy the wait. That can happen on older Linux kernels<BR>&gt;too, or on network \
file systems. You can't rely on change<BR>&gt;notifications, they are just a \
hint.<BR>&gt;<BR>&gt;&gt; The good thing about the __wine_make_system_process wait we \
are also<BR>&gt;&gt; waiting for is that it will get satisfied when all user \
processes have<BR>&gt;&gt; closed and create links then as well. This is actually \
sufficient in<BR>&gt;&gt; itself for some installers (Vector NTI), but not others \
that launch apps<BR>&gt;&gt; while installing (iTunes). Perhaps I can add a long \
timeout to the wait<BR>&gt;&gt; to account for these other non-Linux \
platforms...<BR>&gt;<BR>&gt;A better approach would probably be to simply wait for \
the parent<BR>&gt;process to exit.<BR></FONT></DIV> <DIV dir=ltr><FONT size=2>Good \
point. This would probably avoid the __wine_make_system_process call \
altogether</FONT></DIV> <DIV dir=ltr><FONT size=2>too. Will resubmit again prob \
sometime tonight.</FONT></DIV> <DIV dir=ltr><FONT size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=2>Misha</DIV></FONT></DIV></BODY></HTML>



--===============8975915570845759798==--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic