www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 00497eda3ba9426f7e76b77f6b588c00f11aedf5
parent 6bff554976998deb4728acd224d85e8cb44ed1e5
Author: Joscha Legewie <joscha.legewie@gmail.com>
Date:   Mon, 30 May 2016 09:02:40 -0400

Allow string path as argument to Zotero.launchFile()

Not sure whether this is desired but it helps to reduce the use of nsIFile to a minimum. `file.launch()` and `file.reveal()` are two of the few things that are not possible with OS.File/OS.Path. When that changes, Zotero.launchFile is the only function that needs to be modified if it works with string paths.
Diffstat:
Mchrome/content/zotero/xpcom/zotero.js | 1+
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(); }