Yes, I have tried export 
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/5000/dbus/user_bus_socket and it 
can work now.

Thanks!

-----Original Message-----
From: Carsten Haitzler [mailto:ti...@rasterman.com] 
Sent: Friday, August 30, 2013 3:18 PM
To: Li, Hao H
Cc: Huang, Jimmy; Lynch, Rusty; general@lists.tizen.org; i...@lists.tizen.org
Subject: Re: [Tizen General] Question about the log of launch_app 
org.tizen.dialer on Tizen IVI

On Fri, 30 Aug 2013 05:28:14 +0000 "Li, Hao H" <hao.h...@intel.com> said:

DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-mGEFgj8oWK,guid=8b1c612c78730b3b05bab3c70000001d

an example of one i have...

> My root env is
> XDG_SESSION_ID=c2
> HOSTNAME=
> EINA_LOG_LEVELS=dialer:5
> TERM=xterm
> SHELL=/bin/bash
> HISTSIZE=1000
> SSH_CLIENT=10.239.196.123 64559 22
> WRT_PROCESS_POOL_DISABLE=ON
> ELM_ENGINE=wayland_egl
> SSH_TTY=/dev/pts/1
> USER=root
> MAIL=/var/spool/mail/root
> PATH=/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin
> PWD=/root
> PYTHONSTARTUP=/etc/pythonstart
> ECORE_EVAS_ENGINE=wayland_egl
> HISTCONTROL=ignoredups
> AUDIODRIVER=pulseaudio
> SHLVL=1
> HOME=/root
> SDL_AUDIODRIVER=pulse
> LOGNAME=root
> SSH_CONNECTION=10.239.196.123 64559 10.239.36.169 22
> XDG_RUNTIME_DIR=/run/user/0
> G_BROKEN_FILENAMES=1
> _=/usr/bin/env
> 
> It seems like there is no anything relate to session bus.
> 
> -----Original Message-----
> From: Carsten Haitzler [mailto:ti...@rasterman.com]
> Sent: Friday, August 30, 2013 1:21 PM
> To: Li, Hao H
> Cc: Huang, Jimmy; Lynch, Rusty; general@lists.tizen.org; 
> i...@lists.tizen.org
> Subject: Re: [Tizen General] Question about the log of launch_app 
> org.tizen.dialer on Tizen IVI
> 
> On Fri, 30 Aug 2013 02:31:48 +0000 "Li, Hao H" <hao.h...@intel.com> said:
> 
> oh wait - never mind. it's missign env var to know where the dbus 
> session bus address is. that's why. you'll have to duplicate that from 
> an existing app running with a session bus address in its env.
> 
> > I run it by root or app user, got same result
> > 
> > -----Original Message-----
> > From: Carsten Haitzler [mailto:ti...@rasterman.com]
> > Sent: Friday, August 30, 2013 10:30 AM
> > To: Li, Hao H
> > Cc: Huang, Jimmy; Lynch, Rusty; general@lists.tizen.org; 
> > i...@lists.tizen.org
> > Subject: Re: [Tizen General] Question about the log of launch_app 
> > org.tizen.dialer on Tizen IVI
> > 
> > On Fri, 30 Aug 2013 00:48:13 +0000 "Li, Hao H" <hao.h...@intel.com> said:
> > 
> > > When I run the binary file - /usr/apps/org.tizen.dialer/bin/dialer
> > > directly It can't be launched with log INF<355>:dialer
> > > dialer/main.c:153 elm_main() Using default DBus remote control 
> > > service
> > > name: org.tizen.dialer INF<355>:dialer dialer/rc.c:363 rc_init
> > > () Running on Session bus ERR<355>:e_dbus e_dbus.c:456
> > > e_dbus_bus_get() Error connecting to bus: Using X11 for 
> > > dbus-daemon autolaunch was disabled at compile time, set your 
> > > DBUS_SESSION_BUS_ADDRESS instead CRI<355>:dialer
> > > dialer/rc.c:367 rc_init() Could not get DBus Bus CRI<355>:dialer
> > > dialer/main.c:157 elm_main() Could not setup remote control via DBus.
> > > 
> > > 
> > > Is there any way to make the binary file be launched without 
> > > launch_app? Or can we see the log like INF etc during launch_app 
> > > org.tizen.dialer successfully?
> > 
> > be root? :)
> > 
> > > -----Original Message-----
> > > From: Carsten Haitzler [mailto:ti...@rasterman.com]
> > > Sent: Friday, August 30, 2013 8:43 AM
> > > To: Li, Hao H
> > > Cc: Huang, Jimmy; Lynch, Rusty; general@lists.tizen.org; 
> > > i...@lists.tizen.org
> > > Subject: Re: [Tizen General] Question about the log of launch_app 
> > > org.tizen.dialer on Tizen IVI
> > > 
> > > On Fri, 30 Aug 2013 00:33:49 +0000 "Li, Hao H" <hao.h...@intel.com> said:
> > > 
> > > > Hi, Jimmy
> > > > 
> > > > I tried Export EINA_LOG_LEVELS=dialer:4 or Export
> > > > EINA_LOG_LEVELS=dialer:5 And then launch_app org.tizen.dialer
> > > > 
> > > > In dialer/main.c, there is INF("Entering main loop"); while I 
> > > > can't see the log from terminal or dlogutil about it. Do you 
> > > > know how and where I can see the log?
> > > 
> > > i suspect launch_app is not passing n your environment to the app...
> > > basically that doesnt launch the app.. it messages another process 
> > > to do the launch.. you will have to run the binary directly, or 
> > > get that env var into the system as a whole so the app lancher 
> > > daemon gets the env.
> > > 
> > > > Thanks!
> > > > 
> > > > 
> > > > -----Original Message-----
> > > > From: Huang, Jimmy
> > > > Sent: Friday, August 30, 2013 4:12 AM
> > > > To: Lynch, Rusty; Li, Hao H
> > > > Cc: general@lists.tizen.org; i...@lists.tizen.org
> > > > Subject: RE: [Tizen General] Question about the log of 
> > > > launch_app org.tizen.dialer on Tizen IVI
> > > > 
> > > > I think you need to set the EINA_LOG_LEVEL, This is what I used 
> > > > to enable logging
> > > > 
> > > > Export EINA_LOG_LEVELS=dialer:4
> > > > 
> > > > Jimmy
> > > > 
> > > > -----Original Message-----
> > > > From: Lynch, Rusty
> > > > Sent: Wednesday, August 28, 2013 2:24 PM
> > > > To: Li, Hao H
> > > > Cc: general@lists.tizen.org; i...@lists.tizen.org; Huang, Jimmy
> > > > Subject: Re: [Tizen General] Question about the log of 
> > > > launch_app org.tizen.dialer on Tizen IVI
> > > > 
> > > > That's all that is required.  If you don't see anything then the 
> > > > app isn't logging anything.
> > > > 
> > > > Of course we can directly ask the maintainer to be sure... Jimmy?
> > > > 
> > > >     --rusty
> > > > 
> > > > On Tue, 2013-08-27 at 20:11 -0700, Li, Hao H wrote:
> > > > > I tried chmod 666 /dev/log*, but in dlog util, when running 
> > > > > launch_app org.tizen.dialer, I only can see the log relate to
> > > > > launch_app like " D/AUL     (  356): launch.c:
> > > > > app_request_to_launchpad(240) > launch request result : -1" etc.
> > > > > 
> > > > > If I want to see the log inside org.tizen.dialer 
> > > > > (/usr/apps/org.tizen.dialer/bin/dialer), is there any way to see it?
> > > > > 
> > > > > Thanks!
> > > > > 
> > > > > -----Original Message-----
> > > > > From: Lynch, Rusty
> > > > > Sent: Wednesday, August 28, 2013 10:34 AM
> > > > > To: Li, Hao H
> > > > > Cc: general@lists.tizen.org; i...@lists.tizen.org
> > > > > Subject: Re: [Tizen General] Question about the log of 
> > > > > launch_app org.tizen.dialer on Tizen IVI
> > > > > 
> > > > > The log device files (i.e. what's needed for dlog to work) are 
> > > > > not writable by the app user (which is wrong and we really 
> > > > > should document this as a
> > > > > bug) so all the log writes fail.  
> > > > > 
> > > > > A way to work around this is to ssh in as root (or 'su -' in 
> > > > > the
> > > > > terminal) and type 'chmod 666 /dev/log*' before running an app.  
> > > > > These files are created at boot time so you have to do this on 
> > > > > each boot.
> > > > > 
> > > > > BTW... the way to fix this is to create a udev rule to assign 
> > > > > better permissions on the device files.  Of course we would 
> > > > > need to debate with the security team what those permissions should 
> > > > > be.
> > > > > 
> > > > >     --rusty
> > > > > 
> > > > > On Wed, 2013-08-28 at 00:33 +0000, Li, Hao H wrote:
> > > > > > Hi
> > > > > > 
> > > > > >  
> > > > > > 
> > > > > > http://download.tizen.org/releases/milestone/tizen/ivi/tizen_20130729.
> > > > > > 2/repos/ivi/ia32/packages/i686/lemolo-0.1.3-1.1.i686.rpm
> > > > > > 
> > > > > > During launch_app org.tizen.dialer on Tizen IVI, is there 
> > > > > > any way to see the log?
> > > > > > 
> > > > > >  
> > > > > > 
> > > > > > I tried dlogutil and EINA_LOG_LEVEL=5 launch_app 
> > > > > > org.tizen.dialer, neither of them can see the log about dialer.
> > > > > > 
> > > > > >  
> > > > > > 
> > > > > > Thanks!
> > > > > > 
> > > > > >  
> > > > > > 
> > > > > > Li Hao
> > > > > > 
> > > > > > Best Regards
> > > > > > 
> > > > > > Email:hao.h...@intel.com
> > > > > > 
> > > > > >  
> > > > > > 
> > > > > > Tizen Enabling Team
> > > > > > 
> > > > > > Software and Service Group
> > > > > > 
> > > > > > Intel Asia-Pacific Research & Development Ltd.
> > > > > > 
> > > > > > Tel: 86-21-61167039
> > > > > > 
> > > > > >  
> > > > > > 
> > > > > > 
> > > > > > _______________________________________________
> > > > > > General mailing list
> > > > > > General@lists.tizen.org
> > > > > > https://lists.tizen.org/listinfo/general
> > > > > 
> > > > > 
> > > > 
> > > > 
> > > > _______________________________________________
> > > > General mailing list
> > > > General@lists.tizen.org
> > > > https://lists.tizen.org/listinfo/general
> > > > 
> > > 
> > > 
> > > --
> > > Carsten Haitzler (The Rasterman) <ti...@rasterman.com>
> > > 
> > 
> > 
> > --
> > Carsten Haitzler (The Rasterman) <ti...@rasterman.com>
> > 
> 
> 
> --
> Carsten Haitzler (The Rasterman) <ti...@rasterman.com>
> 


--
Carsten Haitzler (The Rasterman) <ti...@rasterman.com>
_______________________________________________
General mailing list
General@lists.tizen.org
https://lists.tizen.org/listinfo/general

Reply via email to