#!/bin/bash # # Purpose : Send and receive files with Taildrop on your Core's Tailscale # network: Files' right-click Scripts > "Send with Tailscale" # (system/send-with-tailscale), and the service that saves files # sent here to Downloads (system/taildrop). Run by install.sh and on # every update (updates.d/18-taildrop.sh), so changes reach existing # machines. set -e COREDESKTOP="${COREDESKTOP:-$HOME/.local/share/coredesktop}" UNITS="$HOME/.config/systemd/user" SCRIPTS="$HOME/.local/share/nautilus/scripts" command -v tailscale > /dev/null || exit 0 mkdir -p "$SCRIPTS" install -m 755 "$COREDESKTOP/system/send-with-tailscale" "$SCRIPTS/Send with Tailscale" mkdir -p "$UNITS" cp "$COREDESKTOP/system/systemd/coredesktop-taildrop.service" "$UNITS/" systemctl --user daemon-reload systemctl --user enable coredesktop-taildrop.service # Restart, so it runs the version update just pulled. It doesn't start until # configure tailscale has joined the network. systemctl --user restart coredesktop-taildrop.service