forked from enlightenment/efl
Efreet desktop: Fixed URI creation when opening files.
URI should be escaped before passed to the application being executed. This fixes runnig videos with vlc from paths with utf8 values in them. SVN revision: 58329
This commit is contained in:
parent
4eaf1b7ba0
commit
babf703cb9
|
@ -716,9 +716,16 @@ efreet_desktop_command_file_process(Efreet_Desktop_Command *command, const char
|
||||||
|
|
||||||
if (command->flags & EFREET_DESKTOP_EXEC_FLAG_URI)
|
if (command->flags & EFREET_DESKTOP_EXEC_FLAG_URI)
|
||||||
{
|
{
|
||||||
char buf[PATH_MAX];
|
const char *buf;
|
||||||
snprintf(buf, sizeof(buf), "file://%s", absol);
|
Efreet_Uri ef_uri;
|
||||||
|
ef_uri.protocol = "file";
|
||||||
|
ef_uri.hostname = "";
|
||||||
|
ef_uri.path = absol;
|
||||||
|
buf = efreet_uri_encode(&ef_uri);
|
||||||
|
|
||||||
f->uri = strdup(buf);
|
f->uri = strdup(buf);
|
||||||
|
|
||||||
|
eina_stringshare_del(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
free(absol);
|
free(absol);
|
||||||
|
|
Loading…
Reference in New Issue