TagSpaces is an offline, open source, document manager with tagging support
removing open extension folder
uggrocka71ff52be01e
diff --git a/data/chromium/chrome.api.js b/data/chromium/chrome.api.jsindex 529dab19f..7d538fad5 100644--- a/data/chromium/chrome.api.js+++ b/data/chromium/chrome.api.js@@ -348,10 +348,6 @@ define(function(require, exports, module) {TSCORE.showAlertDialog($.i18n.t("ns.dialogs:openFileNativelyAlert"));};- var openExtensionsDirectory = function() {- TSCORE.showAlertDialog("Open extensions directory functionality not implemented on chrome yet!");- };-var getFileProperties = function(filePath) {var fileProperties = {};fileProperties.path = filePath;@@ -442,7 +438,6 @@ define(function(require, exports, module) {exports.openDirectory = openDirectory;exports.openFile = openFile;exports.selectFile = selectFile;- exports.openExtensionsDirectory = openExtensionsDirectory;exports.checkAccessFileURLAllowed = checkAccessFileURLAllowed;exports.checkNewVersion = checkNewVersion;exports.getFileProperties = getFileProperties;diff --git a/data/js/postioapi.js b/data/js/postioapi.jsindex a12dd0292..9fcb48092 100644--- a/data/js/postioapi.js+++ b/data/js/postioapi.js@@ -161,8 +161,6 @@ define(function(require, exports, module) {console.log('File selected: ' + $(this).val());};- exports.openExtensionsDirectory = function() {};-exports.getFileProperties = function(fileProperties) {console.log('File properties: ' + JSON.stringify(fileProperties));TSCORE.FileOpener.setFileProperties(fileProperties);diff --git a/data/mozilla/firefoxos.api.js b/data/mozilla/firefoxos.api.jsindex 52d4569e1..a8f7182f5 100644--- a/data/mozilla/firefoxos.api.js+++ b/data/mozilla/firefoxos.api.js@@ -174,10 +174,6 @@ define(function(require, exports, module) {var selectFile = function() {};- var openExtensionsDirectory = function() {-- };-/* stats for file:dev: 2114,ino: 48064969,@@ -218,7 +214,6 @@ define(function(require, exports, module) {exports.openDirectory = openDirectory;exports.openFile = openFile;exports.selectFile = selectFile;- exports.openExtensionsDirectory = openExtensionsDirectory;exports.checkAccessFileURLAllowed = checkAccessFileURLAllowed;exports.checkNewVersion = checkNewVersion;exports.getFileProperties = getFileProperties;diff --git a/data/mozilla/ioutils.js b/data/mozilla/ioutils.jsindex 86a263651..ae72df2e0 100644--- a/data/mozilla/ioutils.js+++ b/data/mozilla/ioutils.js@@ -556,27 +556,7 @@ exports.openDirectory = function openDirectory(dirPath, worker) {}};-/**- * Open the directory where the user can install tagspaces extensions- * This directory is located in the profile with which firefox is started- */-exports.openExtensionsDirectory = function openExtensionsDirectory(worker) {- console.log("Opening extensions directory (not implemented yet)");- /* try {- // Other nsIPropertues such as ProfD could be found on- // https://developer.mozilla.org/de/docs/Code_snippets/File_I_O- var file = Cc["@mozilla.org/file/directory_service;1"].getService(Ci.nsIProperties).get("ProfD", Ci.nsIFile);- var profileDir = Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsIFile);- profileDir.initWithPath(file.path+"/extensions/jid1-FBaMKxTifTSahQ@jetpack/resources/tagspaces/data/ext");- if (profileDir.isDirectory()) {- profileDir.QueryInterface(Ci.nsILocalFile).launch();- }- } catch(ex) {- console.error("Opening extensions directory failed "+ex);- } */-};--/*+/*"leafName":"2013","permissions":438,"permissionsOfLink":438,diff --git a/data/mozilla/main.js b/data/mozilla/main.jsindex f2aaa7ebc..8fe5aa0f0 100644--- a/data/mozilla/main.js+++ b/data/mozilla/main.js@@ -279,9 +279,6 @@ function handleMessage(msg, worker) {case "openDirectory":ioutils.openDirectory(msg.detail.path, worker);break;- case "openExtensionsDirectory":- ioutils.openExtensionsDirectory(worker);- break;case "createDirectoryIndex":ioutils.createDirectoryIndex(msg.detail.path, worker);break;diff --git a/data/mozilla/mozilla.api.js b/data/mozilla/mozilla.api.jsindex e2ab1ca8f..d0e2cf023 100644--- a/data/mozilla/mozilla.api.js+++ b/data/mozilla/mozilla.api.js@@ -398,17 +398,6 @@ define(function(require, exports, module) {document.documentElement.dispatchEvent(event);};- var openExtensionsDirectory = function() {- console.log("Opening extensions directory...");- var event = document.createEvent('CustomEvent');- event.initCustomEvent("addon-message", true, true, {- "detail": {- "command": "openExtensionsDirectory"- }- });- document.documentElement.dispatchEvent(event);- };-var createDirectoryIndex = function(dirPath) {console.log("Creating directory index for: " + dirPath);var event = document.createEvent('CustomEvent');@@ -519,7 +508,6 @@ define(function(require, exports, module) {exports.openDirectory = openDirectory;exports.openFile = openFile;exports.selectFile = selectFile;- exports.openExtensionsDirectory = openExtensionsDirectory;exports.checkAccessFileURLAllowed = checkAccessFileURLAllowed;exports.checkNewVersion = checkNewVersion;exports.getFileProperties = getFileProperties;diff --git a/data/web/web.api.js b/data/web/web.api.jsindex 285785bc6..549f821e7 100644--- a/data/web/web.api.js+++ b/data/web/web.api.js@@ -386,10 +386,6 @@ define(function(require, exports, module) {console.log("selectFile function not relevant for webdav..");};- var openExtensionsDirectory = function() {- console.log("openExtensionsDirectory function not relevant for webdav..");- };-var getFileProperties = function(filePath) {davClient.propfind(encodeURI(filePath), function(status, data) {@@ -450,7 +446,6 @@ define(function(require, exports, module) {exports.openDirectory = openDirectory;exports.openFile = openFile;exports.selectFile = selectFile;- exports.openExtensionsDirectory = openExtensionsDirectory;exports.checkAccessFileURLAllowed = checkAccessFileURLAllowed;exports.checkNewVersion = checkNewVersion;exports.getFileProperties = getFileProperties;