public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] a2dpd: cmdplay fails: "No such application: 'amarok player play'"
@ 2007-01-15  2:05 Robert Huitl
  2007-01-15 10:16 ` Frédéric DALLEAU
  2007-01-15 15:23 ` Brad Midgley
  0 siblings, 2 replies; 8+ messages in thread
From: Robert Huitl @ 2007-01-15  2:05 UTC (permalink / raw)
  To: bluez-devel

Hi again,

the cmd* functions do not work for me:
cmdplay=dcop amarok player play

When I press the play button, the following line is print (from somewhere 
inside the execlp() call):
No such application: 'amarok player play'

I hacked around this problem by using system() instead of execlp():

Index: a2dpd_ipc.c
===================================================================
RCS file: /cvsroot/bluetooth-alsa/plugz/alsa-plugins/a2dpd/a2dpd_ipc.c,v
retrieving revision 1.3
diff -u -r1.3 a2dpd_ipc.c
--- a2dpd_ipc.c 12 Jan 2007 16:34:01 -0000      1.3
+++ a2dpd_ipc.c 15 Jan 2007 02:02:15 -0000
@@ -384,8 +384,10 @@
                                 close_server_socket_on_fork();

                                 // Replace children with new process
-                                i = execlp(command, command, argv[0], NULL);
-                                DBG("execlp failed %s=%d (errno=%d:%s)", cmd, 
i, errno, strerror(errno));
+                                system(cmd);
+                                exit(0);
                                 break;
                         case -1:
                                 // failed


Regards,
  Robert

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-01-25 19:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-15  2:05 [Bluez-devel] a2dpd: cmdplay fails: "No such application: 'amarok player play'" Robert Huitl
2007-01-15 10:16 ` Frédéric DALLEAU
2007-01-23 19:20   ` Michel Brabants
2007-01-24 10:48     ` Frédéric DALLEAU
2007-01-25 19:02       ` Michel Brabants
2007-01-15 15:23 ` Brad Midgley
2007-01-15 16:43   ` Frédéric DALLEAU
2007-01-16  3:43     ` Brad Midgley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox