From: Kilian Saffran
diff --git a/main.js b/main.js index 17d57ce..40e1e4e 100644 --- a/main.js +++ b/main.js @@ -8,8 +8,6 @@ var child = require('child_process').execFile; // 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. let mainWindow -let userdatapath = app.getPath('userData'); - function createWindow () { // Create the browser window. @@ -17,10 +15,10 @@ function createWindow () { var parameters = []; if (os.platform() == "win32"){ executablePath = "C:\\Strawberry\\perl\\bin\\perl.exe"; - parameters = ["C:\\Users\\ksaff\\Workspace\\DKSService\\dkslocalserver.pl"]; + parameters = ["C:\\Users\\ksaff\\Workspace\\dks_server\\dkslocalserver.pl"]; } else { //os.platform() == "darwin" executablePath = "/Users/kilian/perl5/perlbrew/perls/perl-5.28.1/bin/perl"; - parameters = ["/Users/kilian/Workspace/DKSService/dkslocalserver.pl"]; + parameters = ["/Users/kilian/Workspace/dks_server/dkslocalserver.pl"]; } mainWindow = new BrowserWindow({ @@ -38,8 +36,9 @@ function createWindow () { if(err){ console.error('stderr',err); } else { - - + // var test = app.getPath('USERPROFILE'); + // console.log("Path:" + test); + // console.log(data.toString()); win.show() } @@ -47,7 +46,7 @@ function createWindow () { mainWindow.show() // Open the DevTools. mainWindow.webContents.openDevTools() - + // Emitted when the window is closed. mainWindow.on('closed', function () { // Dereference the window object, usually you would store windows @@ -57,6 +56,7 @@ function createWindow () { }) } + // This method will be called when Electron has finished // initialization and is ready to create browser windows. // Some APIs can only be used after this event occurs. diff --git a/modules/accounting/accounting.html b/modules/accounting/accounting.html deleted file mode 100644 index be04fec..0000000 --- a/modules/accounting/accounting.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - -
- -
- - - - - - - - - - - - - - - - - - -
-