GNOME Bugzilla – Bug 604958
Fix crash in runDialog
Last modified: 2009-12-21 15:24:09 UTC
The run dialog crashes when PATH contains non-existing directories: ("Chained exception")@gjs_throw:0 ' JS ERROR: !!! Exception was: Error: Error invoking Gio.query_info: Error stating file '/usr/bin/perlbin/site': No such file or directory JS ERROR: !!! lineNumber = '0' JS ERROR: !!! fileName = 'gjs_throw' JS ERROR: !!! message = 'Error invoking Gio.query_info: Error stating file '/usr/bin/perlbin/site': No such file or directory' JS ERROR: !!! stack = 'Error("Error invoking Gio.query_info: Error stating file '/usr/bin/perlbin/site': No such file or directory")@:0 ("Error invoking Gio.query_info: Error stating file '/usr/bin/perlbin/site': No such file or directory")@gjs_throw:0 So we can either get distros to set up a sane PATH, or filter out bad entries.
Created attachment 150039 [details] [review] Fix crash in runDialog The run dialog crashes when PATH contains non-existing directories (some distros seem to do that ...). Fix by filtering those out before setting up file monitors.
Created attachment 150053 [details] [review] Patch for this bug + if (! file.query_exists(null)) + continue; + + let info = file.query_info(Gio.FILE_ATTRIBUTE_STANDARD_TYPE, + Gio.FileQueryInfoFlags.NONE, null); g_file_query_exists is implemented using g_file_query_info() and as such does blocking I/O. This can be implemented more easy way. This patch is included in patch for bug https://bugzilla.gnome.org/show_bug.cgi?id=604978.
*** This bug has been marked as a duplicate of bug 604978 ***
*** Bug 604957 has been marked as a duplicate of this bug. ***