Programmatically closing chrome opened in app mode

818 views
Skip to first unread message

Owen

unread,
Jul 11, 2011, 3:06:08 PM7/11/11
to Chromium-discuss
If I open chrome in app mode (using --app=<foo>), is there any way to
programmatically exit? Calling window.close() works, but only if no
new tabs have been opened; in this case the user must manually close
all tabs using the "x" before the process exits.

(In other words, is there some way I can make chrome in app mode act
more like xulrunner where I can do something like:
var app = Components.classes['@mozilla.org/toolkit/app-startup;
1'].getService(Components.interfaces.nsIAppStartup);
and call quit() on that to close the app)

In addition, is there a programmatic way of determining that the page
is loaded in chrome running in app mode?

Thanks,

Owen

Owen

unread,
Sep 6, 2011, 6:08:13 PM9/6/11
to Chromium-discuss
Still looking for a solution for this. Is it even possible?

Cheers,

Owen

On Jul 11, 12:06 pm, Owen <owen.bry...@gmail.com> wrote:
> If I open chrome inappmode(using --app=<foo>), is there any way to
> programmatically exit? Calling window.close() works, but only if no
> new tabs have been opened; in this case the user must manually close
> all tabs using the "x" before the process exits.
>
> (In other words, is there some way I can make chrome inappmodeact
> more like xulrunner where I can do something like:
> varapp= Components.classes['...@mozilla.org/toolkit/app-startup;
Reply all
Reply to author
Forward
0 new messages