* e_fwin: Automatically add %U for an easier to guess command line if needed.

SVN revision: 39247
This commit is contained in:
Cedric BAIL 2009-02-26 16:26:51 +00:00
parent 71c8bbb7bb
commit ccc884e6a8
1 changed files with 10 additions and 1 deletions

View File

@ -861,7 +861,16 @@ _e_fwin_cb_open(void *data, E_Dialog *dia)
if (!desktop)
{
desktop = efreet_desktop_empty_new("");
desktop->exec = strdup(fad->exec_cmd);
if (strchr(fad->exec_cmd, '%'))
{
desktop->exec = strdup(fad->exec_cmd);
}
else
{
desktop->exec = malloc(strlen(fad->exec_cmd) + 4);
if (desktop->exec)
snprintf(desktop->exec, strlen(fad->exec_cmd) + 4, "%s \%U", fad->exec_cmd);
}
}
if (fad->fwin->win)