Re: dbus-launch behaviour



For me, the --auto-syntax parameter does fix the environment variable problem:

[kylem lando kylem]$ ps -ef|grep dbus
dbus      2116     1  0 Oct14 ?        00:00:00 dbus-daemon-1 --system
kylem    31746     1  0 08:42 ?        00:00:00 dbus-daemon-1 --fork
--print-pid 8 --print-address 6 --session

[kylem lando kylem]$ export | grep DBUS
declare -x DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-tGfBF6jAzW"
declare -x DBUS_SESSION_BUS_PID="31746"

but beagled still does not start:

[kylem lando kylem]$ beagled
Could not initialize Beagle's bus connection:
System.DllNotFoundException: dbus-glib-1
in <0x00053> (wrapper managed-to-native)
Beagle.Daemon.DBusisms:dbus_g_thread_init ()
in [0x0000b] (at
/home/kylem/archives/non-rpm/beagle/beagled/DBusisms.cs:60)
Beagle.Daemon.DBusisms:Init ()
in [0x000e3] (at
/home/kylem/archives/non-rpm/beagle/beagled/BeagleDaemon.cs:205)
Beagle.Daemon.BeagleDaemon:Main (string[])


On Fri, 15 Oct 2004 04:44:27 -0700, Michael Koziarski
<koziarski gmail com> wrote:
> shouldn't you run:
> 
> `dbus-launch --auto-syntax`
> 
> ?
> 
> On Fri, 15 Oct 2004 22:13:31 +1300, Rob Brown-Bayliss <rbb orcon net nz > wrote:
> >  Hi all.
> >
> >  The man page for dbus-launch states:
> >
> >  With  no  arguments,  dbus-launch  will  simply  print  the  values  of
> > DBUS_SESSION_BUS_ADDRESS and DBUS_SESSION_BUS_PID. but every time I do that
> > I get a new daemon runing as well, eg: [rob cailleach rob]$ ps -A| grep dbus
> > 5157 ?        00:00:00 dbus-launch 5158 ?        00:00:00 dbus-daemon-1 5477
> > ?        00:00:00 dbus-daemon-1 [rob cailleach rob]$ dbus-launch
> > DBUS_SESSION_BUS_ADDRESS='unix:abstract=/tmp/dbus-ClyHji8IOF'
> > DBUS_SESSION_BUS_PID=5529 [rob cailleach rob]$ ps -A| grep dbus 5157 ?
> >  00:00:00 dbus-launch 5158 ?        00:00:00 dbus-daemon-1 5477 ?
> > 00:00:00 dbus-daemon-1 5529 ?        00:00:00 dbus-daemon-1 [rob cailleach
> > rob]$ also, when launched the environmet is not set, so beagle can not find
> > the dbus until I manually enter the variable in a shell and then launch
> > beagled
> >
> >  The man says:
> >
> >  Finally, you may use the --sh-syntax,  --csh-syntax,  or  --auto-syntax
> > commands to cause dbus-launch to emit shell code to set up the environ-
> > ment.  This is useful in shell scripts.
> >  so I do: [rob cailleach rob]$ dbus-launch --auto-syntax
> > DBUS_SESSION_BUS_ADDRESS='unix:abstract=/tmp/dbus-jElO6fvJT2' export
> > DBUS_SESSION_BUS_ADDRESS DBUS_SESSION_BUS_PID=5586 [rob cailleach rob]$
> > export | grep DBUS [rob cailleach rob]$ any clues?


-- 
Kyle Maxwell
[krmaxwell gmail com]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]