fix exebuf so it will execute what it should.
authorGustavo Sverzut Barbieri <barbieri@gmail.com>
Sat, 6 Jun 2009 23:35:10 +0000 (23:35 +0000)
committerGustavo Sverzut Barbieri <barbieri@gmail.com>
Sat, 6 Jun 2009 23:35:10 +0000 (23:35 +0000)
Run Command (module exebuf in e) was acting strange for me. I
have .desktops for Firefox and Firefox - Safe mode (well, at least a
menu entries for them), and when I entered "firefox" in the input box,
and choose the command "firefox" from the list under the input field,
exebuf was starting Firefox - Safe Mode (it was the only one showed in
the upper list - "Firefox" was not listed there).
This patch fixes it (the lower selected, upper started problem, not the
"Firefox" is not there one) for me.

By: Tomasz Kontusz

SVN revision: 40926

src/modules/exebuf/e_exebuf.c

index 7d22570..0108e2b 100644 (file)
@@ -4,7 +4,7 @@
 #include "e.h"
 #include "e_mod_main.h"
 
-/* currently default bind is alt+esc buf alt+space has been suggested */
+/* currently default bind is alt+esc but alt+space has been suggested */
 
 /* local subsystem functions */
 typedef struct _E_Exebuf_Exe E_Exebuf_Exe;
@@ -426,7 +426,7 @@ _e_exebuf_exec(void)
 {
    if (exe_sel)
      {
-       if (exe_sel->desktop)
+       if (exe_sel->desktop && which_list != EXE_LIST)
          e_exec(exebuf->zone, exe_sel->desktop, NULL, NULL, "exebuf");
        else
          e_exec(exebuf->zone, NULL, exe_sel->file, NULL, "exebuf");