commit 26b161fce2aa4f8f89ac292be490cbdfb951d900
parent 6bff554976998deb4728acd224d85e8cb44ed1e5
Author: Dan Stillman <dstillman@zotero.org>
Date: Mon, 30 May 2016 13:26:14 -0400
Merge pull request #1017 from jlegewie/patch-1
Allow string path as argument to Zotero.launchFile()
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js
@@ -1223,6 +1223,7 @@ Components.utils.import("resource://gre/modules/osfile.jsm");
* Launch a file, the best way we can
*/
this.launchFile = function (file) {
+ file = Zotero.File.pathToFile(file);
try {
file.launch();
}