Skip to content

Commit fae0628

Browse files
authoredApr 17, 2020
Merge pull request #37 from pietrop/dpe-to-autoEdit3
DPE to autoEdit 3 - rename
2 parents 181f96b + ecaee48 commit fae0628

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed
 

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "digital-paper-edit-electron",
3-
"version": "1.0.15",
3+
"productName":"autoEdit 3",
4+
"version": "1.0.16",
45
"description": "Digital Paper Edit app",
56
"main": "src/electron-main.js",
67
"scripts": {

‎src/electron-main.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
const { app, BrowserWindow, Menu, shell, ipcMain } = require('electron');
2-
const path = require('path');
32
const url = require('url');
3+
const path = require('path');
4+
// set userData to use `digital-paper-edit-electron` to be backward compatible before name change from `digital-paper-edit-electron` to `autoEdit 3`;
5+
// https://www.electronjs.org/docs/api/app#appsetpathname-path
6+
// https://stackoverflow.com/questions/48587035/electron-how-to-set-a-custom-directory-for-user-data-user-data-dir
7+
// https://github.com/electron/electron/blob/master/docs/api/app.md#appgetpathname
8+
// const userDataPath = app.getPath ('userData');
9+
const appData = app.getPath ('appData');
10+
app.setPath ('userData', path.join(appData,"digital-paper-edit-electron"));
11+
412
const makeMenuTemplate = require('./make-menu-template.js');
513

614
// Keep a global reference of the window object, if you don't, the window will
@@ -16,6 +24,7 @@ function createNewSettingsWindow() {
1624
y: 0,
1725
minWidth: 1000,
1826
minHeight: 670,
27+
title: "autoEdit 3 - Settings",
1928
titleBarStyle: 'show',
2029
// preload: __dirname + '/prompt.js',
2130
webPreferences: {
@@ -47,6 +56,7 @@ function createMainWindow() {
4756
minHeight: 670,
4857
titleBarStyle: 'show',
4958
// preload: __dirname + '/prompt.js',
59+
title: "autoEdit 3",
5060
webPreferences: {
5161
// webSecurity: false,
5262
nodeIntegration: true,

‎src/stt-settings/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
href="../../node_modules/bootstrap-css-only/css/bootstrap.min.css"
1313
/>
1414
<!-- <link rel="manifest" href="./manifest.json" /> -->
15-
<title>Digital Paper Edit - Settings</title>
15+
<title>autoEdit 3 - Settings</title>
1616
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.21.1/babel.min.js"></script> -->
1717
<script src="./babel.min.js"></script>
1818
</head>

0 commit comments

Comments
 (0)