<div dir="ltr">Hi James,<div><br></div><div>Thanks for your help. Yes, you are right! Now I do a new version of it, and I used a wrapper to launch it. This time, the app can be launched successfully, but still there is an error like:</div><div><br></div><div><div>** (process:29208): WARNING **: Unable to register app: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.467" (uid=1000 pid=29208 comm="webapp-container www/index.html ") interface="com.canonical.hud" member="RegisterApplication" error name="(unset)" requested_reply="0" destination=":1.36" (uid=1000 pid=2741 comm="/usr/lib/x86_64-linux-gnu/hud/hud-service ")</div><div>XmbTextListToTextProperty result code -2</div><div>XmbTextListToTextProperty result code -2</div><div>qml: [JS] (file:///snap/wuziqi/x1/www/js/app.js:1) Uncaught ReferenceError: UbuntuUI is not defined</div></div><div><br></div><div>My code is at <a href="https://github.com/liu-xiao-guo/wuziqi1">https://github.com/liu-xiao-guo/wuziqi1</a></div><div><br></div><div>I think it is another error. </div><div><br></div><div>Thanks & best regards,</div><div>XiaoGuo</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 9, 2017 at 2:26 PM, James Henstridge <span dir="ltr"><<a href="mailto:james.henstridge@canonical.com" target="_blank">james.henstridge@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 9 February 2017 at 12:12, XiaoGuo Liu <<a href="mailto:xiaoguo.liu@canonical.com">xiaoguo.liu@canonical.com</a>> wrote:<br>
> Hi James,<br>
><br>
> Thanks for your reply. Yeah, it could be reason for it. I used to have a Qt<br>
> project, and the app was launched by desktop-launch:<br>
><br>
> <a href="https://github.com/liu-xiao-guo/rssreader_platform" rel="noreferrer" target="_blank">https://github.com/liu-xiao-<wbr>guo/rssreader_platform</a><br>
><br>
> For my case, it is a html5 app. I do not know what is the correct way to<br>
> launch the app. Do you know what should be set up correctly? I may have my<br>
> own script to set them up.<br>
<br>
</span>The webapp-helper part you're using looks like it provides a<br>
bin/webapp-launcher helper script that would do what you want. It<br>
looks like it might be what you're after.<br>
<div class="HOEnZb"><div class="h5"><br>
James.<br>
<br>
--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">XiaoGuo, Liu </div></div></div></div>
</div>