summaryrefslogtreecommitdiff
path: root/src/bin/media.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/media.c')
-rw-r--r--src/bin/media.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/bin/media.c b/src/bin/media.c
index 29381a0..d715519 100644
--- a/src/bin/media.c
+++ b/src/bin/media.c
@@ -1531,22 +1531,3 @@ media_control_get(const Evas_Object *obj)
1531 if (!sd) return NULL; 1531 if (!sd) return NULL;
1532 return sd->o_ctrl; 1532 return sd->o_ctrl;
1533} 1533}
1534
1535void
1536media_unknown_handle(const char *handler, const char *src)
1537{
1538 const char *cmd;
1539 char buf[PATH_MAX];
1540 char *escaped;
1541
1542 cmd = "xdg-open";
1543 escaped = ecore_file_escape_name(src);
1544 if (!escaped)
1545 return;
1546 if (handler && *handler)
1547 cmd = handler;
1548 snprintf(buf, sizeof(buf), "%s %s", cmd, escaped);
1549 free(escaped);
1550
1551 ecore_exe_run(buf, NULL);
1552}