On Fri, May 30, 2008 at 5:06 PM, Alan Cox &lt;<a href="mailto:alan@redhat.com">alan@redhat.com</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
And what I would really expect is<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;- icons for dbus dependant things are overlaid with a &quot;?&quot; logo<br>
 &nbsp; &nbsp; &nbsp; &nbsp;- maybe a single dialogue (with a &#39;don&#39;t show me again&#39;)<br>
 &nbsp; &nbsp; &nbsp; &nbsp;- my desktop to reconnect to dbus and recover its state politely<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;without any restarts by me.</blockquote><div><br>Do you have any idea how much custom code that is, when multiplied by all services and all programs that use them?&nbsp; And remember, this is all code that will *almost never be called*.&nbsp; It will not be tested very well.&nbsp; <br>
<br>In fact, I would argue such special recovery code is far more likely to actually *introduce* problems.&nbsp; For example, will it handle the case where I&#39;m currently dragging a file from a USB key?<br><br>Look; with respect to the desktop and upgrades, we have far larger problems in Fedora than the system bus.&nbsp; Do you realize that currently in Fedora, we actually have a *worse* experience upgrading Firefox than compared to Windows?&nbsp; <br>
<br>Why is that?&nbsp; Our upgrade process is currently defined just as &quot;untar and run some shell scripts&quot;.&nbsp; What do we do about the running Firefox?&nbsp; Nothing.&nbsp; No notification.&nbsp; You have to know to hunt and close all the windows and then click the icon again.&nbsp; Actually the fact that we replace all the old files means the currently running one breaks in subtle ways; for example, if you notice the Ctrl-f dialog won&#39;t work after an upgrade because it&#39;s trying to load a file from disk that isn&#39;t there anymore.<br>
<br>For sure Firefox&#39;s versioned structure exacerbates this problem, but it&#39;s by no means limited to Firefox.&nbsp; In general *any* program that opens a file that it expects to be there in the currently running version but is not in the new one will break.<br>
<br>How do you solve that?&nbsp; You don&#39;t.&nbsp; We need to require a logout and log back in.&nbsp; Possibly could be more clever about scanning executables in of the RPM and linking those to running processes, and then linking the processes to X windows and pulsing them or something but...yeah.<br>
<br>Remember for the desktop use case we do not have a Unix administrator sitting there with a root shell who knows the details of how the operating system works.&nbsp; For our users it simply *cannot fail*.&nbsp; <br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Bad example too - making init restart is on the kernel todo list and there<br>
are some test patches for this floating around.</blockquote><div><br>Ok, let&#39;s say that restarting the system bus is on our todo list too. =)<br><br></div></div>