Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Applications / Firefox / Mozilla / April 2005



Tip: Looking for answers? Try searching our database.

Launch mozilla from command line does not get the focus

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Héctor Rivas Gándara - 18 Apr 2005 10:49 GMT
Hi,

I'm a newbie in macos world, comming from linux.

I've build a debug version of mozilla. If I try to launch it from
commad line, the windows appears, but dows not get the focus. I can't
use it, it does not receive events, and I have to close it. But if I
launch it from Finder usen the .app bundle, it works.

How can I do it work? what is happening?

The same happens if I try to launch a xul window using xpcshell with
this script:

---
var EventQClass =
Components.classes['@mozilla.org/event-queue-service;1'];

var EventQObj =  
EventQClass.getService(Components.interfaces.nsIEventQueueService);

EventQObj.createThreadEventQueue();

var AppShellClass =
Components.classes['@mozilla.org/appshell/appShellService;1'];
var AppShellObj =
AppShellClass.getService(Components.interfaces.nsIAppShellService);

var URLClass =  
Components.classes['@mozilla.org/network/standard-url;1'];
var URLObj = URLClass.createInstance(Components.interfaces.nsIURL);

URLObj.spec="file:///tmp/test.xul";

AppShellObj.initialize(null,null);

var test = new Object();
toto = AppShellObj.createTopLevelWindow(null,URLObj,
 true,true,
 Components.interfaces.nsIWebBrowserChrome.CHROME_ALL,
 640,480,test);

AppShellObj.run();
---

Launch a xul window from xpcshell has special interest for debug
propouses.

--
Greets
Keymon
Javier Pedemonte - 20 Apr 2005 15:39 GMT
You should read the debug documentation first.  As
http://www.mozilla.org/ports/fizzilla/DebugMach.html points out, you
need to go into 'dist/MozillaDebug.app/Contents/MacOS/', and run Mozilla
from in there.  Then everything should work fine...

javier
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.