Initial commit — Luma Home trampoline for webOS 5/6
Bind-mounts a transparent web page over LG Home that launches Luma via WebOSServiceBridge, with a subscription-based background watcher as fallback. Tested on LG 65NANO813PA, webOS 6.5.3. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
332bbc8fe2
5 files changed
+177
No files matched your search
+21
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
# Foreground watcher — subscribes to app manager events and launches Luma
|
||||
# whenever the web Home trampoline appears in the foreground. The outer
|
||||
# loop restarts the subscription if it drops.
|
||||
|
||||
echo $$ > /tmp/luma-watcher.pid
|
||||
|
||||
while true; do
|
||||
luna-send -i luna://com.webos.applicationManager/getForegroundAppInfo \
|
||||
'{ "subscribe": true }' 2>/dev/null \
|
||||
| while IFS= read -r line; do
|
||||
case "$line" in
|
||||
*com.webos.app.home*)
|
||||
luna-send -n 1 -w 5000 -f \
|
||||
luna://com.webos.applicationManager/launch \
|
||||
'{ "id": "com.ecklf.luma" }' >/dev/null 2>&1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
sleep 2
|
||||
done
|
||||
Reference in new issue
Block a user