xfmedia-remote doesn't work if the pid env for dbus isn't exported
mmassonnet at gmail.com
mmassonnet at gmail.com
Thu Mar 15 18:18:58 CET 2007
On Thu, Mar 15, 2007 at 09:54:36AM -0700, Brian J. Tarricone wrote:
> On Thu, 15 Mar 2007 10:20:52 +0100 mmassonnet at gmail.com wrote:
>
> >Hello,
> >
> >I was trying to run xfmedia-remote command and if xfmedia isn't running
> >yet it will fail to start it, because the environment variable
> >DBUS_SESSION_BUS_PID isn't exported.
> >
> >I attach a patch (sorry, can't log in bugzilla atm (no https no
> >trust)). The patch adds an export
> >DBUS_SESSION_BUS_PID=$DBUS_SESSION_BUS_PID and it will work for
> >xfmedia-remote to launch xfmedia.
>
> Er, is your version of D-Bus broken? I've never had a problemw with
> this before...
No, it works really good :) But I have found some weirdness. When I
log in from a tty, and then run startxfce4, I don't have
DBUS_SESSION_BUS_PID that is exported. In this situation I can't run
xfmedia with xfmedia-remote --play. I need to run xfmedia a first time,
and then if I close xfmedia, xfmedia-remote --play runs xfmedia and
plays.
But, maybe you are right. The version I have, 1.0.2, does this with the
following command:
% dbus-launch --sh-syntax
DBUS_SESSION_BUS_ADDRESS='unix:abstract=/tmp/dbus-nuVGqj4jHa,guid=c8a8047860cc76a13fc1890045f97fa9';
export DBUS_SESSION_BUS_ADDRESS;
DBUS_SESSION_BUS_PID=4203;
As you can see, there is no export DBUS_SESSION_BUS_PID. Here I attach
another patch (corrected even).
>
> -brian
Cheers ;-)
Mike
--
Mike (m8t) Massonnet http://massonnet.org/ __oo
GnuPG 0--" 0xF8C80F97 ---(_)_">
C4DA 431D 52F9 F930 3E5B 3E3D 546C 89D9 F8C8 0F97
-------------- next part --------------
A non-text attachment was scrubbed...
Name: export-dbus-pid.diff
Type: text/x-diff
Size: 367 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20070315/b5305522/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20070315/b5305522/attachment.pgp>
More information about the Xfce4-dev
mailing list