Mercurial > pidgin
diff src/sound.c @ 1214:0baf39dc5437
[gaim-migrate @ 1224]
can choose to run command to play sounds
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 08 Dec 2000 07:46:22 +0000 |
parents | c73736fa0b7c |
children | a9cf2f61a7b1 |
line wrap: on
line diff
--- a/src/sound.c Fri Dec 08 06:21:44 2000 +0000 +++ b/src/sound.c Fri Dec 08 07:46:22 2000 +0000 @@ -320,6 +320,18 @@ _exit(0); } + if (sound_cmd[0]) { + char *args[4]; + char command[4096]; + g_snprintf(command, sizeof command, sound_cmd, filename); + args[0] = "sh"; + args[1] = "-c"; + args[2] = command; + args[3] = NULL; + execvp(args[0], args); + _exit(0); + } + #ifdef ESD_SOUND if (play_esd_file(filename)) _exit(0);