Hi Olivier,

Looks like you are working on ICO homescreen where there is no icon for 
weston-terminal.
Though you modified dialer’s desktop file, the database was not updated. That’s 
why you still see dialer.
If you want to use weston-terminal, you can try “zypper install weston-ivi” 
which will bring up weston desktop with terminal icon on the top left.

Thanks,
Ning
From: Olivier Delbeke [mailto:[email protected]]
Sent: Thursday, March 20, 2014 4:12 PM
To: Wang, Ning W
Cc: VanCutsem, Geoffroy; [email protected]; Rees, Kevron M
Subject: RE: How to launch a native app ?


Hi Ning,

Thank you.  "launch_app org.tizen.dialer" works (both as "root" and as "app"). 
However, it returns "... successfully launched" when run as root and "... 
launch failed" when run as "app". But in both cases, the dialer appears on the 
screen. I cannot start any other application (especially not my "hello world" 
or the terminal).

To get the terminal, I tried to modify the "Exec=/usr/bin/dialer" into 
"Exec=/usr/bin/weston-terminal" in org.tizen.dialer.desktop. But even that 
doesn't work : clicking on the dialer icon or executing launch_app both start 
the dialer instead of the terminal. I also tried from SSH (as "root" and "app") 
and from the console behind Ctrl-Alt-F2.

Thank you,

Olivier



[Inactive hide details for "Wang, Ning W" ---03/20/2014 08:54:31 AM---"Wang, 
Ning W" <[email protected]>]"Wang, Ning W" ---03/20/2014 08:54:31 
AM---"Wang, Ning W" <[email protected]<mailto:[email protected]>>
"Wang, Ning W" <[email protected]<mailto:[email protected]>>

03/20/2014 08:54 AM


To


Olivier Delbeke <[email protected]<mailto:[email protected]>>, 
"VanCutsem, Geoffroy" 
<[email protected]<mailto:[email protected]>>, "Rees, 
Kevron M" <[email protected]<mailto:[email protected]>>


cc


"[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>


Subject


RE: How to launch a native app ?








Hi Oliver,

You can run “launch_app org.tizen.dialer” via ssh. You need first set password 
for user “app”, then login ssh as user “app”.

Thanks,
Ning
From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Olivier Delbeke
Sent: Thursday, March 20, 2014 3:33 PM
To: VanCutsem, Geoffroy; Rees, Kevron M
Cc: [email protected]<mailto:[email protected]>
Subject: Re: How to launch a native app ?


Hi Geoffroy and Kevron,

Thanks a lot for your help (and for your patience). Yes, I was trying to run it 
as root, and another mistake was to try to run from an SSH terminal. I will try 
to run it as "app".
But here comes the most stupid question of all : how can I start the terminal 
???

Best regards,

Olivier


[Inactive hide details for "VanCutsem, Geoffroy" ---03/19/2014 06:53:04 
PM---"VanCutsem, Geoffroy" <[email protected]]"VanCutsem, Geoffroy" 
---03/19/2014 06:53:04 PM---"VanCutsem, Geoffroy" 
<[email protected]<mailto:[email protected]>>
"VanCutsem, Geoffroy" 
<[email protected]<mailto:[email protected]>>

03/19/2014 06:53 PM


To


Olivier Delbeke <[email protected]<mailto:[email protected]>>


cc


"[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>


Subject


Re: How to launch a native app ?










Hi Olivier,

(should have added more pointers ealier on)

On Wed, 2014-03-19 at 17:59 +0100, Olivier Delbeke wrote:
> Dear all,
>
> I'm trying to make a "hello world" for Tizen IVI (yes, I have high
> hopes). Basically, I created a new project, I took the "dialler"'s
> code as base, stripped it down to a maximum, created a CMakeList.txt,
> a spec file, an xml-file, an icon, built the project with gbs and
> finally installed the resulting rpm on the target.
>
> The problem now is to know how to run it. Executing it directly
> returns "ecore_wl_init() Could not connect to Wayland display" and
> "launch_app xxx.xxxx.hello" returns "... launch failed" (great!).
I mentionned that you should not be root for this but there may be other
things that cause this issue. I'm thinking specifically that if the
SMACK label is not correct then this could be a problem. A quick test
for this would be to add 'security=none' to your kernel command-line and
try again. Note that you really *don't* want to keep running with
security turned off and so we'd need to look at the exact problem for
your app.

>  I assume that the right way is to use launch_app (because other
> native apps seem to be launched this way), but is there any way to get
> any log out of it ?
We have some info about logging on Tizen IVI on this page:
https://wiki.tizen.org/wiki/IVI/Enable_Logging I don't know if this will
yield to any result for your app but please do let me know
(specifically, I'm not familiar as to whether you'd need to do anything
in your app to get additional info).

> Did it fail to find my application ? (I create a .desktop file
> in /usr/share/applications, but does it need anything else ?) Did my
> application crash ? Did I remove too much code from the dialer and did
> my application fail to register itself correctly ? ... I can't find
> anything useful in /var/log, in the output of journalctl or even in
> the output of strace. How can I debug this (if possible, other than
> putting tons of "printf" in launch_app) ?
>
> More generally, is there any documentation about how to write a native
> app ? About what 'launch_app' does ? About getting logs ?
We have the wiki page above regarding getting logs, any suggestion for
enhancing it is more than welcome. We don't have a wiki page for writing
a native app and we typically point people at the 'lemolo' app as a
starting point (which is exactly what you did). Another good source of
information is the presentation that Dominig Ar Foll presented at FOSDEM
this year entitled: 'A multi-user App Framework' (there is a link to it
here: https://wiki.tizen.org/wiki/IVI#FOSDEM.2714)

Cheers,
Geoffroy
Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718.
Citibank, Brussels, account 570/1031255/09

This e-mail and any attachments may contain confidential material for the sole 
use of the intended recipient(s). Any review or distribution by others is 
strictly prohibited. If you are not the intended recipient, please contact the 
sender and delete all copies.

<<inline: image001.gif>>

<<inline: image003.png>>

<<inline: image004.png>>

<<inline: image005.png>>

<<inline: image006.png>>

_______________________________________________
IVI mailing list
[email protected]
https://lists.tizen.org/listinfo/ivi

Reply via email to