GNOME Bugzilla – Bug 653700
Run (alt+F2) dialog breaks locks system modality when read errors occur
Last modified: 2011-07-20 00:03:24 UTC
To reproduce on fedora: - alt+F2 - type "/etc/grub.conf" - press Enter Result: nothing happens (I think that there is a permission reading error when you try to open that file), yet you are stuck with the "alt+F2 dialog" that prevents you from using any other part of the shell and just won't go away until you kill X with ctrl+alt+backspace.
Created attachment 191421 [details] [review] runDialog: catch exceptions from Gio.app_info_launch_default_for_uri() An uncaught exception here would mean that the dialog wouldn't close.
Review of attachment 191421 [details] [review]: A minor suggestion regarding the regex, otherwise looks good. ::: js/ui/runDialog.js @@ +342,3 @@ + // is registered as handling this file + // We are only interested in the part after the colon. + let message = e.message.replace(/.*: *(.+)/, '$1'); A corner case, but we should use the part after the _first_ colon, in case the the message itself contains a colon too: /[^:]*: *(.+)/
Attachment 191421 [details] pushed as d12dd14 - runDialog: catch exceptions from Gio.app_info_launch_default_for_uri()