closes #1794, Fix automatic updater on OS X
Display a warning if running a Zotero frankenbuild
This commit is contained in:
parent
46c5014c28
commit
8d7de2987c
2 changed files with 16 additions and 1 deletions
|
@ -36,6 +36,19 @@ var ZoteroStandalone = new function()
|
|||
}
|
||||
ZoteroPane.init();
|
||||
ZoteroPane.makeVisible();
|
||||
|
||||
// Run check for corrupt installation, where the wrong Gecko runtime is being used
|
||||
if(Zotero.isMac) {
|
||||
var greDir = Components.classes["@mozilla.org/file/directory_service;1"]
|
||||
.getService(Components.interfaces.nsIProperties)
|
||||
.get("GreD", Components.interfaces.nsIFile);
|
||||
if(greDir.isSymlink() || greDir.leafName !== "Current") {
|
||||
var ps = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
|
||||
.getService(Components.interfaces.nsIPromptService);
|
||||
ps.alert(null, "", Zotero.getString('standalone.corruptInstallation'));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
this.onUnload = function() {
|
||||
|
|
|
@ -728,4 +728,6 @@ locate.showFile.label = Show File
|
|||
locate.showFile.tooltip = Open the directory in which this file resides
|
||||
locate.libraryLookup.label = Library Lookup
|
||||
locate.libraryLookup.tooltip = Look up this item using the selected OpenURL resolver
|
||||
locate.manageLocateEngines = Manage Lookup Engines...
|
||||
locate.manageLocateEngines = Manage Lookup Engines...
|
||||
|
||||
standalone.corruptInstallation = Your Zotero Standalone installation appears to be corrupted due to a failed auto-update. While Zotero may continue to function, to avoid potential bugs, please download the latest version of Zotero Standalone from http://zotero.org/support/standalone as soon as possible.
|
Loading…
Reference in a new issue