GithubHelp home page GithubHelp logo

pstadler / alfred-screensharing Goto Github PK

View Code? Open in Web Editor NEW
53.0 53.0 8.0 228 KB

Connect to a host in Alfred with automatic network discovery.

Home Page: http://www.alfredforum.com/topic/942-screen-sharing-with-automatic-network-discovery/

License: MIT License

alfred-screensharing's Introduction

pstadler.dev Twitter Mastodon LinkedIn

alfred-screensharing's People

Contributors

pstadler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

alfred-screensharing's Issues

Computer name not necessarily hostname

dns-sd -B _rfb._tcp returns the "Instance Name" of the device. The hostname however is discovered by running dns-sd -L "INSTANCE_NAME_HERE" _rfb._tcp. Sometimes instance names and hostnames are not the same. In my case the instance name didn't have the (2) at the end but my hostname was suffixed with -2.

In order to fix this, escape_hostname should be replaced with a command that would run dns-sd -L on the $name variable.

I'd submit a PR myself but I have resolved the name mismatch in my case. Also, I'm not sure how to nest the subshell kills without killing the parent subshell (e.g. ((sleep 0.1; kill -13 0) & within a ((sleep 0.1; kill -13 0) &).

Here was my progress though:

function resolve_hostname {
    tail -1 <((sleep 0.1; kill -13 0) & dns-sd -L "$@" _rfb._tcp) | cut -d' ' -f8)
}

Perhaps a separate script would make this work?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.