Re: Execute a command from extension.
- From: "Jasper St. Pierre" <jstpierre mecheye net>
 
- To: xtranophilist aaa <xtranophilist gmail com>
 
- Cc: gnome-shell-list gnome org
 
- Subject: Re: Execute a command from extension.
 
- Date: Mon, 30 May 2011 15:01:14 -0400
 
Do you have a .desktop file? If it's called "firefox-profile-manager.desktop", you can simply use:
  let appSystem = Shell.AppSystem.get_default();
  let app = appSystem.get_app('firefox-profile-manager');
  app.activate(-1);
If not, you can try:
  Util.spawn(['firefox', '-no-remote', '-profile-manager]);
On Mon, May 30, 2011 at 2:47 PM, xtranophilist aaa 
<xtranophilist gmail com> wrote:
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
-profilemanager"
            return true;
        }));
Thank you in advance!
_______________________________________________
gnome-shell-list mailing list
gnome-shell-list gnome org
http://mail.gnome.org/mailman/listinfo/gnome-shell-list
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]