summaryrefslogtreecommitdiff
path: root/legacy/efreet/src/lib/efreet_desktop_command.c
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/efreet/src/lib/efreet_desktop_command.c')
-rw-r--r--legacy/efreet/src/lib/efreet_desktop_command.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/legacy/efreet/src/lib/efreet_desktop_command.c b/legacy/efreet/src/lib/efreet_desktop_command.c
index 8174c0a5c9..658132c560 100644
--- a/legacy/efreet/src/lib/efreet_desktop_command.c
+++ b/legacy/efreet/src/lib/efreet_desktop_command.c
@@ -716,9 +716,16 @@ efreet_desktop_command_file_process(Efreet_Desktop_Command *command, const char
716 716
717 if (command->flags & EFREET_DESKTOP_EXEC_FLAG_URI) 717 if (command->flags & EFREET_DESKTOP_EXEC_FLAG_URI)
718 { 718 {
719 char buf[PATH_MAX]; 719 const char *buf;
720 snprintf(buf, sizeof(buf), "file://%s", absol); 720 Efreet_Uri ef_uri;
721 ef_uri.protocol = "file";
722 ef_uri.hostname = "";
723 ef_uri.path = absol;
724 buf = efreet_uri_encode(&ef_uri);
725
721 f->uri = strdup(buf); 726 f->uri = strdup(buf);
727
728 eina_stringshare_del(buf);
722 } 729 }
723 730
724 free(absol); 731 free(absol);