Fixing report string.

This commit is contained in:
Sanel Zukan 2014-06-20 09:27:40 +00:00
parent d6dd94778c
commit 7ebc86ca41

View File

@ -420,7 +420,7 @@ static bool start_desktop_file(const char *cmd) {
} }
if(!d.exec(buf, PATH_MAX)) { if(!d.exec(buf, PATH_MAX)) {
alert(_("Unable to run '%s'.\nProbably this file is malformed or 'Exec' key has non-installed program"), cmd); alert(_("Unable to run '%s'.\nProbably the file is malformed or 'Exec' key has program which is not installed"), cmd);
return false; return false;
} }
@ -624,6 +624,7 @@ int main(int argc, char** argv) {
return 1; return 1;
} }
} }
/* check if we have .desktop file */ /* check if we have .desktop file */
if(argv[ca] && str_ends(argv[ca], ".desktop")) if(argv[ca] && str_ends(argv[ca], ".desktop"))
return RETURN_FROM_BOOL(start_desktop_file(argv[ca])); return RETURN_FROM_BOOL(start_desktop_file(argv[ca]));