Quote:
Originally Posted by jabyte
My question is, how do I configure it to open in Chrome to begin with? Or is that something I can configure on Chromes side? Or something I can change in the launch of Zimbra desktop. |
I have one approximation to this problem. If you could work more on this subject and improve it it would be nice.
Here you are:
Edit ZIMBRADATA\zdesktop.webapp\webapp.
js:
E.g.
C:\Documents and Settings\Administrador\Configuración local\Datos de programa\Zimbra\Zimbra Desktop\zdesktop.webapp\webapp.
js
Add this function before:
Code:
function reloadWebAppIni(iniFile) { line.
Code:
function runChrome() {
var appRoot = WebAppProperties.getAppRoot();
var iniFile = appRoot.clone();
iniFile.append("webapp.ini");
reloadWebAppIni(iniFile);
var chromeServer = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile);
chromeServer.initWithPath("C:\\Documents and Settings\\Administrador\\Configuración local\\Datos de programa\\Google\\Chrome\\Application\\chrome.exe");
var chromeProcess = Cc["@mozilla.org/process/util;1"].createInstance(Ci.nsIProcess);
var tmpChrome = "--app=" + '"' + WebAppProperties.uri + '"';
tmpChrome = "--app=" + WebAppProperties.uri;
var argsChrome = [tmpChrome];
chromeProcess.init (chromeServer);
chromeProcess.run(false, argsChrome, argsChrome.length);
} Adapt chromeServer.initWithPath if needed to fit your Windows needs (this needs to be improved so that it is not a magic string).
Now in the same file in the load function we are going to substitute:
Code:
if (os == "winnt") {
window.platform.icon().menu.addMenuItem("quitApp", bundle.GetStringFromName("Quit"), function(){quitApp();});
} with:
Code:
if (os == "winnt") {
window.platform.icon().menu.addMenuItem("quitApp", bundle.GetStringFromName("Quit"), function(){quitApp();});
window.platform.icon().menu.addMenuItem("runChrome", "Run Chrome", function(){runChrome();});
} (Actually we are only adding a line).
Save webapp.
js.
----
I have noticed that if you do not have any added account you need the Zimbra Desktop window (the original one) to be opened or minimised but not minimised on the system tray.
If you have accounts and you minimise to Zimbra Desktop windows to system tray then you can start Google Chrome.
-----
And... How does it work?
Right-click on the Zimbra Desktop icon found in the System tray. You will find another option called "Run Chrome".
Click on there and Chrome opens Zimbra Desktop as if it was a web application. If you do not want this behaviour remove the "--app" string.
Please report back if you find some other ways of running Google Chrome. Some ideas:
* Not having to run zdclient.exe at all?
* Chrome window is opened automatically
I do not know what it is the Zimbra Desktop engine support of Chrome... so some features might not work as expected.