Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Desktop Action taildrop-send]
- Name=Taildrop To Device...
- Icon=document-send
- # - The alternative to .DNSName and postprocessing is just using .HostName, except it doesn't work when the device has a custom device name set in the control panel
- # - We didn't have to turn it into lower case, but it's just consistent with the Windows and macOS UI
- # - We assume MagicDNS is enabled (I'm honestly not sure what will .MagicDNSSuffix be if it's not, I just don't have such an account to play with)
- Exec=/usr/bin/tailscale file cp '%U' $(tailscale status --json | jq '. as $root | .Peer[] | select(.UserID == $root.Self.UserID) | .DNSName | rtrimstr("." + $root.MagicDNSSuffix + ".") | ascii_downcase | [., ., "off"] | .[]' | xargs kdialog --radiolist 'Select a machine to send to:')
- [Desktop Entry]
- Type=Service
- ServiceTypes=KonqPopupMenu/Plugin,all/all,all/allfiles
- Actions=taildrop-send
- X-KDE-Priority=TopLevel
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement