Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/autonome/Quickfire. Firefox add-on for launching Mac applications from the URL bar.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930let awesomebar = require('awesomebar');let apps = require('apps');let protocol = require('jetpack-protocol/index');
awesomebar.add({ keyword: 'apps', onSearch: function(query, suggest) { apps.search(query, function(app) { suggest({ title: app.leafName, url: 'app:' + app.path }); }); }});
// Protocol handler for loading about:responsevar handler = protocol.protocol('app', { onRequest: function(request, response) { response.end(); let path = decodeURI(request.uri).substr(6); apps.search(path, function(app) { if (app.path == path) apps.launch(path); }); }});handler.register();