GNOME Bugzilla – Bug 144897
Don't use CurrentTime to launch applications
Last modified: 2011-01-17 15:23:33 UTC
libnautilus-private/nautilus-program-choosing.c uses CurrentTime to launch applications. Because of the patches that will soon be applied from bug 118372, this means that these launched applications will not be focused and will appear behind the focused window. A timestamp from some event, such as a ButtonPress, should be used instead. I will attach a patch momentarily that provides the /wrong/ way to fix it, but which is fully functional (i.e. so that annoyed users who run from CVS can have something to use while they wait for the real fix).
Created attachment 28972 [details] [review] The wrong way to handle this problem
I applied this patch, but lets keep the bug open so we will fix it the right way. The right way is for all the launcher functions to take a timestamp argument, and then propagate that backwards until it reaches the place where the user event happened. As a start, we could use slowly_and_stupidly_obtain_timestamp if you pass CurrentTime.
I'm going to mark this as blocking bug 149028 just so that I don't forget about it.
Comment on attachment 28972 [details] [review] The wrong way to handle this problem I marked the patch as committed to get it of the "unreviewed patches" radar.
This should be history since we switched to GIO. Closing as OBSOLETE.