Skip to content

TagSpaces is an offline, open source, document manager with tagging support

opening the containg directory of the by command line opened file in background

uggrockc576acc8d654
diff --git a/data/node-webkit/node-webkit.api.js b/data/node-webkit/node-webkit.api.js
index 0d96377eb..af3e5235c 100644
--- a/data/node-webkit/node-webkit.api.js
+++ b/data/node-webkit/node-webkit.api.js
@@ -72,6 +72,8 @@ define(function(require, exports, module) {
if(cmdArguments !== undefined && cmdArguments.length > 0) {
console.log("CMD Arguments: "+cmdArguments+" Process running in "+process.cwd());
var filePath = ""+cmdArguments;
+ var dirPath = TSCORE.TagUtils.extractContainingDirectoryPath(filePath);
+ TSCORE.IO.listDirectory(dirPath);
TSCORE.FileOpener.openFileOnStartup(filePath);
}
};