**** BEGIN LOGGING AT Sat Jan 29 02:59:57 2022 Jan 29 08:45:17 codepoet: can the app comunicate with zigbee2mqtt directly (to replace its web frontend) or does it use web services from some other Home Control HUB? Jan 29 09:30:37 Morning! Jan 29 09:30:56 Tofe: Seems we're getting there with appinstalld, still need to manually restart the service but the other bits now work Jan 29 09:32:37 JaMa: Maybe you know this one? I'm trying to get the ApplicationInstallerUtility in /usr/sbin instead of /usr/bin. It seems that the add_executable adds it to /usr/bin. I've now "solved" it with this: https://github.com/webOS-ports/applicationinstallerutility/commit/d7eef549013d04fc5b27c06d76d4ffed25da52e4 but not sure if that's the proper way? Jan 29 10:12:35 Tofe: This should get luna-downloadmgr in a bit better state: https://github.com/webOS-ports/luna-downloadmgr/pull/2/files Jan 29 10:16:26 JaMa2: My coffee machine has nice icons and profiles, so I can understand it. The UI is almost as easy as webOS ;) Jan 29 11:21:14 Tofe: Just seems with this that I need to set the executable permissions on the .sh to 777 still for it to work. Then it crashes with some errors, but it seems to be getting there... Jan 29 11:21:56 https://bpa.st/4XBA Jan 29 11:22:14 Seems I need to update sleepd a bit and add the API call to wakeLockRegister Jan 29 14:03:02 this commit itself LGTM, but why is it important to be in sbin instead of bin? is some descriptor pointing to sbin dir so you had to move it to match? Jan 29 14:03:29 Herrie: our machine has nice icons as well, that's why I don't like it :) Jan 29 14:21:52 JaMa: Well it's and application installer which I would normally expect to require elevated priviliges to do it's job, hence sbin Jan 29 14:22:13 Or at least that's my understanding of difference between bin and sbin Jan 29 14:22:39 in modern distributions sbin is just a symlink to bin for compatiblity with older scripts Jan 29 14:23:11 /bin /sbin /usr/sbin are all symlinks to /usr/bin for me Jan 29 14:24:27 and $PATH contains only this directory (and the one in local) Jan 29 14:28:27 OK so in future all should be in bin instead? Jan 29 14:28:38 Because we differ from OSE here it seems Jan 29 14:34:02 this layout isn't well supported in OE yet, there is usrmerge DISTRO_FEATURE support, but that only moves toplevel directories to usr, doesn't merge sbin and bin yet Jan 29 14:34:22 depends on how far future we're talking about I guess Jan 29 14:35:07 and not all distributions follow this (e.g. ubuntu has equivalent of usrmerge, but still separate sbin and bin) Jan 29 14:51:58 Well I'm happy to change it back to bin in general because in other places I also patched it to sbin Jan 29 16:28:01 JaMa2: OK changed it back now Jan 29 16:33:27 JaMa2: Any thoughts on how to make the .sh scripts in: https://github.com/webosose/applicationinstallerutility/blob/master/CMakeLists.txt#L63-64 executable? I now get permission errors. I can of course somehow chmod them in .bb but seems that's not done on OSE that way? Jan 29 17:22:13 hey herrie, sorry to report the new appInstallService is still hanging when I call install :'-( Jan 29 17:24:35 ok, yay! good news Jan 29 17:24:52 i did the systemctl restart appinstalld again and it worked the second try Jan 29 17:24:56 maybe i had a typo the first time Jan 29 17:25:09 appmuseum can open web and email links! trying app launch now... Jan 29 17:54:42 ok! with a whole bunch of caveats, AppMuseum II is able to launch Preware 2 on the emulator Jan 29 18:05:34 Ok clear, I didn't try that Jan 29 18:08:33 I mean the remove or update Jan 29 18:08:47 I needed to hack a few things to get it to work, could be I need to hack a few more Jan 29 18:18:25 The systemctl restart appinstalld is something I still need to resolve somehow. I'm trying to get to the bottom of it Jan 29 18:28:21 gonna try some work-arounds in my sdk scripts Jan 29 18:29:44 This should be fixed at our end though... Problem is that this links into luna-sysmgr which we cannot replace so it's all a bit hackidy hack Jan 29 18:30:27 ok, but i was thinking... if the sdk closes an app before it tries to re-install it, maybe then it wouldn't get hung up? Jan 29 18:30:45 Yes well this SHOULD just work Jan 29 18:30:52 But I really hacked around a bit here Jan 29 18:31:01 So it could be I misunderstood the process and missed something somewhere Jan 29 18:31:12 its a little hard to do, though, because you close apps by process it, but launch them by appid Jan 29 18:31:27 *process id Jan 29 18:32:59 ok, never mind. that doesn't fix it. still need a reboot if i try to update an app in place. Jan 29 18:33:25 so work-around i can use for now is to remove the app before re/installing it Jan 29 18:35:33 Yeah it's all a bit mingled in terms of code Jan 29 18:35:46 I really did some nasty hacks to get it to work, might need to revisit that a bit just Jan 29 18:36:41 I.e. we don't have smack in LuneOS Jan 29 18:36:47 But seems they do in OSE Jan 29 18:36:53 Need to see how to add it Jan 29 18:37:54 I basically stripped out the whole "smack" bits for now Jan 29 18:38:47 JaMa: You know the rational behind smack(4)? Is this only for Auto or also for regular webOS? Jan 29 18:39:29 codepoet-x1: I basically removed a few steps in install & remove: https://github.com/webOS-ports/appinstalld2/commit/920032afcd81b37f74fa10cc220101470210a150 Jan 29 18:42:18 codepoet-x1: Do you know how to close an app, what call to use i mean? Jan 29 18:43:34 well, on webos its... Jan 29 18:43:47 luna-send -n 1 -f luna://com.palm.applicationManager/close '{ "processId": "1052" }' Jan 29 18:47:54 Ah OK, well seems it's that in OSE it does by appID and we don't have that one in LunaSysMgr Jan 29 18:47:55 https://github.com/webosose/appinstalld2/blob/672680b59b31c6b6a8177b5693263b8297f3bc31/src/installer/CallChainEventHandler.cpp#L67 Jan 29 18:49:59 I would need some Tofe magic there... I don't do well in C++ Jan 29 18:52:19 actually killing by appid is so much easier for me Jan 29 18:52:25 is this the correct uninstall command? Jan 29 18:53:00 luna://com.palm.appinstaller/remove '{ "packageName": "com.whatever.app", "subscribe": true }' Jan 29 18:54:38 it works but seems to hang. Jan 29 18:54:42 Yes, however our luna-appmanager requires processid Jan 29 18:54:50 Yeah because the calls aren't there in backend Jan 29 18:55:56 Well we actually have a closeApp that requires "appId" as per https://github.com/webOS-ports/luna-appmanager/blob/master/Src/base/application/ApplicationInstaller.cpp#L4291 but it doesn't seem to do much as of yet Jan 29 18:56:04 Again I can update appInstalld2 to make that call Jan 29 18:56:21 But I would need some Tofe magic there Jan 29 18:58:55 why would uninstall require processid? Jan 29 19:01:28 Well it doesn't... But for /close we do Jan 29 19:01:38 For closeApp not, but that doesn't seem to do a whole lot Jan 29 19:03:20 ok, so this script works...most of the time on a fresh boot: https://github.com/codepoet80/webos-ports-sdk/blob/master/scripts/lune-install.sh Jan 29 19:03:39 1) restart the appinstalld Jan 29 19:04:02 2) try both ways to remove the existing app. this will hang, so i have to press ctrl+c after a couple seconds to resume the rest of the script Jan 29 19:04:09 3) remove any previous temp files Jan 29 19:04:29 4) push the new ipk Jan 29 19:04:45 5) call the new installer to install the ipk from tmp Jan 29 19:04:59 6) tell applicationManager to rescan Jan 29 19:05:19 if called from this script: https://github.com/codepoet80/webos-ports-sdk/blob/master/scripts/lune-run.sh Jan 29 19:05:27 extra steps will be performed: Jan 29 19:05:41 0) package the specified folder as an app (using the original sdk) Jan 29 19:06:02 7) tell applicationManager to launch the app Jan 29 19:06:33 however, i can only run these scripts once before I have to reboot. Jan 29 19:11:08 on the original issue though, apps launching other apps, i think you got it! i proposed closing that issue, and tracking a new one for install/re-install/uninstall life cycle. Jan 29 19:14:44 I will play a bit more here too Jan 29 19:14:59 These steps shouldn't be all needed all the time Jan 29 20:07:34 HerrieTP: according to https:cmake.orgmakeelpatestommandnstall.html#programs the current line "install(PROGRAMS ${SCRIPT_FILES} DESTINATION ${WEBOS_INSTALL_BINDIR})" should set the executable bit fine, what do you see in applicationinstallerutility image directory in WORKDIR? Jan 29 20:10:31 HerrieTP: there is meta-webos-smack layer in meta-webosose layer (e.g. https:github.comebososeeta-webososeommit8ed9ac97fea5ff4a14431742d6a393d315da958) but webOS OSE builds don't "activate" it with DISTRO_FEATURE Jan 29 20:10:57 ups why irssi refuses to paste text with slash? :O Jan 29 20:11:18 https://github.com/webosose/meta-webosose/commit/68ed9ac97fea5ff4a14431742d6a393d315da958 Jan 29 20:11:25 https://cmake.org/cmake/help/latest/command/install.html#programs Jan 29 20:11:33 JaMa: thanks rpi Jan 29 20:12:31 JaMa: Sorry this one: https://github.com/webOS-ports/luna-downloadmgr/blob/herrie/test-fs/CMakeLists.txt#L135 Jan 29 20:12:46 Gets there as -rw-r--r-- Jan 29 20:13:06 use install(PROGRAMS on the configured file) Jan 29 20:14:31 does it need to be "configured"? it doesn't seem to use any variables in https:github.comebOS-portsuna-downloadmgrloberrieest-fsilesaunchuna-downloadmgr.sh.in Jan 29 20:14:36 https://github.com/webOS-ports/luna-downloadmgr/blob/herrie/test-fs/files/launch/luna-downloadmgr.sh.in Jan 29 20:19:48 OK thnx I'll play around a bit with that Jan 29 20:20:19 Do you know something about smack and why it's used? Jan 29 20:22:01 it's one way to harden the OS a bit and I think in the end it was mandatory only for Auto, I don't think it's worth using in LuneOS (at least not in current form) Jan 29 20:22:12 Ah this is in OSE 2.0 release notes: Smack integration Jan 29 20:22:12 For enhanced security, Smack has been integrated, which is a kernel-based implementation of mandatory access control. This will enable implementation of features that require higher level of security from the platform level. Jan 29 20:22:32 Yeah seems quite some work for little benefit looking at the recipes Jan 29 20:24:02 we can include security-flags.inc in luneos.inc (I thought I've already added it long time ago, but git grep doesn't show it) Jan 29 20:24:37 but other than that there are many options like meta-selinux, meta-smack I wouldn't be surprised if there is also some meta-apparmor etc Jan 29 20:30:10 Well so far I've only seen it in appinstalld2, I'll simply remove the step there Jan 29 20:30:15 Easy enough Jan 29 21:01:58 These might be interesting to try at our end at some point:https://github.com/orgs/webosbrew/repositories?type=all Jan 30 00:14:50 codepoet: New stuff to toy with ;) Jan 30 00:14:53 And time for sleep here **** ENDING LOGGING AT Sun Jan 30 02:59:57 2022