Execute a command from extension.

How do I execute a command from the extension?
I mean what instruction should I write in extension.js like to execute
a command as an icon is created.

icon.connect('button-press-event', Lang.bind(this, function () {
// What should I be writing here like to execute "firefox -no-remote
            return true;

Thank you in advance!

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]