Launcher: Support %f and %F

This commit is contained in:
o9000
2017-09-02 13:04:01 +02:00
parent 498b665c8a
commit d49adfdef3
6 changed files with 82 additions and 36 deletions

View File

@@ -96,6 +96,10 @@ void expand_exec(DesktopEntry *entry, const char *path)
q += strlen("''");
q += strlen(path);
q--; // To balance the q++ in the for
} else if (*p == 'f' || *p == 'F') {
sprintf(q, "%c%c", '%', *p);
q += 2;
q--; // To balance the q++ in the for
} else {
// We don't care about other expansions
q--; // Delete the last % from q