From: "Frédéric DALLEAU" <frederic.dalleau@palmsource.com>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] a2dpd: cmdplay fails: "No such application: 'amarok player play'"
Date: Mon, 15 Jan 2007 11:16:03 +0100 [thread overview]
Message-ID: <45AB5463.80503@palmsource.com> (raw)
In-Reply-To: <200701150305.07478.bluez-devel@huitl.de>
Hi,
The command line is restricted to one program (dcop) and one parameter =
(amarok player play). You can overcome this issue by doing a shell =
script taking one parameter which will it turn execute your program =
using whatever parameters you want.
Fr=E9d=E9ric
Robert Huitl a =E9crit :
> Hi again,
>
> the cmd* functions do not work for me:
> cmdplay=3Ddcop 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
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> 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 =3D execlp(command, command, argv[0], =
NULL);
> - DBG("execlp failed %s=3D%d (errno=3D%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 y=
our
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D=
DEVDEV
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
> =
-- =
Frederic
Without the wind, the grass does not move.
-------------------------------------------------------------------------
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=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2007-01-15 10:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45AB5463.80503@palmsource.com \
--to=frederic.dalleau@palmsource.com \
--cc=bluez-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox