xrsh-buildroot/buildroot-v86/board/v86/rootfs_overlay/root/bin/launcher

19 lines
455 B
Bash
Executable file

#!/bin/sh
init(){
# add menu items https://xrsh.isvery.ninja/#Launcher%20menu
{ find /root/.config/launcher -type f; find /root/.config/launcher -type l; } | while read item; do
js '
let term = document.querySelector("[isoterminal]").components.isoterminal.term
launcher.register({
name: "'$(basename $item)'",
cb: () => term.emit("exec",["'$item'"])
})
return "'$item'"
'
done > /tmp/log
}
"$@"