**** BEGIN LOGGING AT Thu Mar 17 02:59:56 2022 Mar 17 06:51:47 Morning! Mar 17 06:51:53 Tofe: Ah yes that might be a good idea Mar 17 07:22:36 Tofe: New image works so merged Mar 17 07:25:04 Morning! Mar 17 07:25:08 Herrie: ah good :) Mar 17 07:34:13 Also LG replied that window.open is not supported in WAM :'( Mar 17 07:39:07 Yes, that's sad Mar 17 07:40:47 So you'd hack something to support it I guess? Mar 17 07:41:18 I'm now testing SAM without the check just to see if I get any further on Acocunts app Mar 17 07:46:39 Herrie: I can try yes; it's quite an important feature for us Mar 17 07:54:04 Tofe: OK after disabling the check in SAM I get a little bit further, but it's now failing on other things which I guess we hacked on QtWebEngine Before Mar 17 07:55:45 https://bpa.st/CCIA Mar 17 07:59:59 Tofe: Adding /usr/palm to the wam conf file fixes the "index.html:1 Access is blocked to resource: file:///usr/palm/command-resource-handlers.json" Mar 17 08:00:04 But for the rest the same Mar 17 08:02:09 /usr/palm/command-resource-handlers.json ? do we have that file ? the location is a bit weird Mar 17 08:02:13 https://github.com/webOS-ports/wam/commit/26c92b571c8a12c17398e4f079d85e2ef4dc54d0 Mar 17 08:02:17 Yes we do Mar 17 08:03:03 Legacy 3.0.5 had 3 files there: command-resource-handlers.json, default-dock-positions.json and ext-timezones.json Mar 17 08:03:15 Just checked the Doctor I have here unpacked Mar 17 08:03:44 I would say /etc/palm would be more logical for this but well Mar 17 08:03:49 it's a bit unfortunate to allow the whole /usr/palm because of these 3 files, but not sure what choice we have Mar 17 08:04:43 Well we have a few more files in there on our image Mar 17 08:04:51 Let me see if there's an easy way to move it to /etc/palm Mar 17 08:05:46 Herrie: eventually, can't we set these few apps as "trusted" ? that would allow them the whole /usr folder Mar 17 08:06:03 Tofe: Sure we can do that Mar 17 08:08:31 Let me try that quickly Mar 17 08:08:39 I'll revert the WAM conf and see what it does Mar 17 08:19:34 Yup that seems to work Mar 17 08:19:49 I'll just update all the core-apps to be trusted then Mar 17 08:19:57 And launcher + systemui Mar 17 08:27:58 Great, thanks Mar 17 08:28:23 And then we'll patch SAM to allow getAppBasePath for trusted apps Mar 17 09:00:31 There we go: https://github.com/webOS-ports/core-apps/pull/21 Mar 17 09:00:45 I've reverted the commits for WAM where these permissions where added now as well Mar 17 09:01:18 perfect, merged Mar 17 09:04:27 Ok bumped the recipes again Mar 17 09:04:36 For SAM I leave that patch up to you Mar 17 09:04:46 I had a quick look but don't really know how to do it Mar 17 09:05:23 Herrie: no problem, but it'll be tonight probably Mar 17 09:05:43 Tofe: Yeah no rush Mar 17 09:10:08 and it seems it's not so straightforward as I thought Mar 17 09:10:30 but compared to window.open it's still a piece of cake Mar 17 09:14:42 Tofe: Yeah I also had a look, it's not that easy as you'd think. You'd have to get the appinfo and check the trustlevel there. Mar 17 09:15:01 I've added some issues to our issue tracker to keep track of the various migrations Mar 17 09:15:22 We can also use the "isPrivilegedApp", which is based on the appId Mar 17 09:16:45 Ah yes Mar 17 09:16:52 And we'd need to patch in org.webosports there as well Mar 17 09:18:51 I mean herE: https://github.com/webOS-ports/sam/blob/webOS-ports/webOS-OSE/src/base/AppDescription.h#L236 Mar 17 09:36:44 yes, exactly Mar 17 09:38:24 I guess you can do both at once? Mar 17 09:44:30 sure Mar 17 13:28:21 Morning! it was always crazy to me that all you needed to do to get super powers on the OS was to name your AppId a special way. LG's permissions approached seemed more modern. Mar 17 13:43:50 codepoet: Oh yeah for sure, we're getting there step by step. Fix 1 thing, run into another Mar 17 13:43:58 But we now have the webOS OSE browser working Mar 17 13:44:05 Enyo 2.0 and Enact apps work mostly Mar 17 13:44:10 Enyo 1.0 is hit & miss still Mar 17 13:44:14 Mostly not working Mar 17 13:49:28 Big issue seems to be missing window.open functionality in WAM Mar 17 18:15:42 Herrie: https://github.com/webOS-ports/sam/pull/2 can you give it a try? Mar 17 18:32:23 Not at home but pretty sure the key in appinfo is not trusted and value is string Mar 17 18:33:16 Tofe: See core-apps Mar 17 18:41:05 oh. Mar 17 18:41:38 ah right, trustLevel == "trusted" Mar 17 18:44:11 ...fixed **** ENDING LOGGING AT Fri Mar 18 02:59:56 2022