summaryrefslogtreecommitdiff
path: root/plugins/shellexec
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/shellexec')
-rw-r--r--plugins/shellexec/shellexec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/shellexec/shellexec.c b/plugins/shellexec/shellexec.c
index de0659dc..b419a4c9 100644
--- a/plugins/shellexec/shellexec.c
+++ b/plugins/shellexec/shellexec.c
@@ -83,6 +83,11 @@ trim (char* s)
static int
shx_callback (Shx_action_t *action, DB_playItem_t *it)
{
+ if (action->parent.flags&(DB_ACTION_PLAYLIST|DB_ACTION_COMMON)) {
+ trace ("%s\n", action->shcommand);
+ system (action->shcommand);
+ return 0;
+ }
char cmd[_POSIX_ARG_MAX];
int res = deadbeef->pl_format_title_escaped (it, -1, cmd, sizeof (cmd) - 2, -1, action->shcommand);
if (res < 0) {