var parent = chrome.contextMenus.create({
'title': 'Open stream',
'contexts': ['link'],
'onclick': function(info, tab) {
alert(info.linkUrl) // run a shell command here
}
});
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/f9971c4e-0684-4b83-bab7-28efd0ca7ba4%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
Extensions cannot invoke arbitrary shell commands. That's a huge security hole.
On Sat, May 17, 2014 at 2:25 PM, Tanel Tammik <keev...@gmail.com> wrote:
Hello,i'm looking some info on how to open external applications from chrome extension.Can i get some help from here?I managed to write a extension, which adds new context menu on the right click. i need to crab the link i'm clicking, which i can do, and then open external application.Is it possible?var parent = chrome.contextMenus.create({
'title': 'Open stream',
'contexts': ['link'],
'onclick': function(info, tab) {
alert(info.linkUrl) // run a shell command here
}
});
--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/f9971c4e-0684-4b83-bab7-28efd0ca7ba4%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/73d046e9-fb84-42ee-a7dc-c29ea21dc306%40chromium.org.