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