Skip to content

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

electron related changes

uggrock52239ccede24
diff --git a/.gitignore b/.gitignore
index 10819e365..50166f9e0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,6 +11,7 @@ docs
data/pro
data/ext
nwjsdata
+data/electron/data
data/node-webkit/locales
data/node-webkit/ffmpegsumo.dll
data/node-webkit/icudtl.dat
diff --git a/README.md b/README.md
index cbc7d7085..e9d50788a 100644
--- a/README.md
+++ b/README.md
@@ -67,14 +67,14 @@ Go to the data folder and install the TagSpaces extensions with bower:
$ bower install
-#### Run the native Windows, Linux or Mac OS X application with nw.js
+#### Run the native Windows, Linux or Mac OS X application with NW.js
* Download [nw.js](https://github.com/nwjs/nw.js) prebuilt binaries for your system environment.
* For Windows: copy `nw.exe, nw.pak, icudt.dll, ffmpegsumo.dll` to `tagspaces\data\node-webkit` directory.
* For Linux: copy `nw, nw.pak, icudtl.dat, libffmpegsumo.so` to `tagspaces/data/node-webkit` directory. If you experience issue related to libudev.so.0 read the following [article](https://github.com/rogerwang/node-webkit/wiki/The-solution-of-lacking-libudev.so.0).
* For Mac OS X: copy `node-webkit.app` to `tagspaces/data/node-webkit` directory.
* Run the `nw` executable file.
-#### Run the native Windows, Linux or Mac OS X application with Electron platform
+#### Run the native Windows, Linux or Mac OS X application with Electron
* Install the `electron-prebuilt` package with this command: `npm install -g electron-prebuilt`
* Goto the folder: `cd tagspaces/data/electron`
* Execute the following command the `electron .`
@@ -92,18 +92,18 @@ Go to the data folder and install the TagSpaces extensions with bower:
* Start the SDK by executing `source bin/activate` in the Addon SDK folder
* Go to the your local tagspaces folder and run the following command, where the -p argument specifies some local firefox profile:
- `$cfx run -p /tmp/mozprofile`
+ $cfx run -p /tmp/mozprofile
* Start the addon by clicking the TagSpaces icon in the upper right area of Firefox
#### How to setup the WebDAV edition?
There is a script in root folder of the repository called `webdavserver.js`, which can be started with:
- `node webdavserver.js`
+ node webdavserver.js
This command will start a local node.js based WebDAV server on `http://127.0.0.1:8000`. Open your browser and enter the following URL:
- `http://127.0.0.1:8000/index.html`
+ http://127.0.0.1:8000/index.html
You will be prompted for user credentials, which are username: `demo` and password: `demo` and now you should be able to work with the WebDAV version of TagSpaces.
diff --git a/data/electron/electron.api.js b/data/electron/electron.api.js
index 7102fd0ab..1dcf3a96c 100644
--- a/data/electron/electron.api.js
+++ b/data/electron/electron.api.js
@@ -16,6 +16,8 @@ define(function(require, exports, module) {
console.log("Loading electron.api.js..");
+ //console.log("CM Args: " + JSON.stringify(process.argv));
+
var TSCORE = require("tscore");
var TSPOSTIO = require("tspostioapi");
var fsWatcher;
diff --git a/data/electron/main.js b/data/electron/main.js
index 067ed9102..2cd264846 100644
--- a/data/electron/main.js
+++ b/data/electron/main.js
@@ -3,6 +3,11 @@
const electron = require('electron');
const app = electron.app; // Module to control application life.
const BrowserWindow = electron.BrowserWindow; // Module to create native browser window.
+
+//app.setPath('userData','data'); // making the app portable
+
+//console.log("CM Args: " + JSON.stringify(process.argv));
+
var path = require('path');
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.