demo / network-computer
Public
Copy of github.com/askrobots/network-computer (MIT): a desk you reach from anything. The original lives on GitHub.
GitStable demo
README: say this is a copy and where the original is
cde82c2
14 hours, 3 minutes ago
History
nc-object-open · 624 bytes · 11 lines
| 1 | #!/bin/sh |
| 2 | # Open an object server page as an app window, signed in. |
| 3 | # nc-object-open NAME PATH [ICON] e.g. nc-object-open Talk /talk audio-input-microphone |
| 4 | # Gets a one-time sign-in URL from nc-voice's helper socket (the desk user's only). |
| 5 | SOCK=${NC_HELPER_SOCKET:-/run/nc-voice/helper.sock} |
| 6 | URL=$(curl -s -m 5 -G --unix-socket "$SOCK" --data-urlencode "next=${2:-/}" http://helper/url) |
| 7 | if [ -z "$URL" ]; then |
| 8 | notify-send -i dialog-warning "Object Server" "Can't sign in: the voice service (nc-voice) isn't running." 2>/dev/null |
| 9 | exit 1 |
| 10 | fi |
| 11 | exec nc-webapp "${1:-Object Server}" "$URL" "${3:-applications-internet}" |