Skip to content

All your computers and your phone/iPhone, working as one desk. Screens, apps, files, clipboard, calls, texts, notifications, mouse and keyboard, shared between Mac, Windows, Linux , Android, Web and ios / ipados . Free and open source. No account, no cloud, and no shared network needed.

692 B
Raw Blame
#!/bin/sh
# TwinDesk — Copyright (C) 2026 inukaasith. GPL-3.0, see LICENSE.
# Restarts the Mac app with stats logging and runs the loopback stream check. From mac/: dev/stream-check/run.sh [seconds] [log]
cd "$(dirname "$0")/../.."
LOG=${2:-/tmp/macshare-stream-check.log}
pkill -f "macshare/mac/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron \." ; sleep 2
MACSHARE_DEV_PORT=${MACSHARE_DEV_PORT:-47810} MACSHARE_DEBUG_STATS=1 nohup npx electron . > "$LOG" 2>&1 &
sleep 7
MACSHARE_DEV_PORT=${MACSHARE_DEV_PORT:-47810} npx electron dev/stream-check "${1:-20}" 2>&1 | grep '^rx \|^session\|^stream\|error'
echo "--- sender"; grep '\[stream\] {' "$LOG" | tail -3 | cut -c1-260