After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 606418 - ALT+F2 doesnt'work in PATH is misconfigured
ALT+F2 doesnt'work in PATH is misconfigured
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
2.28.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2010-01-08 15:19 UTC by mpiazza
Modified: 2010-01-14 18:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix the problem of env var PATH (1.06 KB, patch)
2010-01-08 15:22 UTC, mpiazza
none Details | Review
Fix crash in runDialog (1.61 KB, patch)
2010-01-08 17:13 UTC, Florian Müllner
reviewed Details | Review
Fix crash in runDialog (1.65 KB, patch)
2010-01-08 17:31 UTC, Florian Müllner
committed Details | Review

Description mpiazza 2010-01-08 15:19:43 UTC
I have the env variable PATH misconfigured:

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

but /usr/local/bin doesn't exist.

When I toggle Alt+F2 to start runDialog it fails with this message:
    JS ERROR: !!!   Exception was: Error: Error invoking Gio.query_info: Errore nell'eseguire lo stat del file "/usr/local/bin": No such file or directory
    JS ERROR: !!!     lineNumber = '0'
    JS ERROR: !!!     fileName = 'gjs_throw'
    JS ERROR: !!!     message = 'Error invoking Gio.query_info: Errore nell'eseguire lo stat del file "/usr/local/bin": No such file or directory'
    JS ERROR: !!!     stack = 'Error("Error invoking Gio.query_info: Errore nell'eseguire lo stat del file \"/usr/local/bin\": No such file or directory")@:0
("Error invoking Gio.query_info: Errore nell'eseguire lo stat del file \"/usr/local/bin\": No such file or directory")@gjs_throw:0
@:0
()@/usr/share/gnome-shell/js/ui/runDialog.js:45
CommandCompleter()@/usr/share/gnome-shell/js/ui/runDialog.js:31
()@/usr/share/gnome-shell/js/ui/runDialog.js:280
RunDialog()@/usr/share/gnome-shell/js/ui/runDialog.js:168
getRunDialog()@/usr/share/gnome-shell/js/ui/main.js:367
([object _private_Shell_WM],"panel_run_dialog",null,false)@/usr/share/gnome-shell/js/ui/main.js:107
Error("Chained exception")@:0
("Chained exception")@gjs_throw:0

and nothing appear.
Comment 1 mpiazza 2010-01-08 15:22:16 UTC
Created attachment 151035 [details] [review]
Patch to fix the problem of env var PATH

Consider the following patch for inclusion to fix the problem
Comment 2 Florian Müllner 2010-01-08 17:13:05 UTC
Created attachment 151042 [details] [review]
Fix crash in runDialog

I am afraid your patch does not enough to fix the problem - if I recall correctly, it will fail later when setting up file monitors for non-existing paths.

This patch was originally filed on bug 604958, I just added a proper commit message. Credit goes entirely to Maxim.
Comment 3 Colin Walters 2010-01-08 17:20:47 UTC
Review of attachment 151042 [details] [review]:

::: js/ui/runDialog.js
@@ +47,3 @@
+                info = file.query_info(Gio.FILE_ATTRIBUTE_STANDARD_TYPE, Gio.FileQueryInfoFlags.NONE, null);
+            try {
+            let info;

We should flag these catchalls in the code somehow so when we later add support for error domain+code to gjs we'll be able to fix them.

 // FIXME catchall

Or something like that?
Comment 4 Florian Müllner 2010-01-08 17:31:14 UTC
Created attachment 151044 [details] [review]
Fix crash in runDialog

OK, added the comment as requested.
Comment 5 Colin Walters 2010-01-14 18:18:43 UTC
Attachment 151044 [details] pushed as 2a0e0ae - Fix crash in runDialog