Comment 11 for bug 842108

Revision history for this message
Péter Trombitás (trombipeti) wrote :

Does this make any sense? I can't test it:P
in runner.vala:
around line 56:
    private Settings gp_settings;
+
+ private bool search_string_executable = false;
around line 246:
      /* complete again system executables */
      else
      {
        foreach (var exec_candidate in this.executables)
        {
          if (exec_candidate.has_prefix (search_string)) // this line is changed as in David's patch
+ {
+ if (exec_candidate != search_string)
+ {
+ executables_match.add (exec_candidate);
+ }
+ else
+ {
+ search_string_executable = true;
+ }
          }
        }
      }
and around line 272:
      // 1. enable launching the exact search string if no other result or if it's executable
      if ((executables_match.size == 0) && (dirs_match.size == 0) || search_string_executable == true))