Skip to content

Commit

Permalink
r0b08x [chore] 9/30/2021, 7:29:49 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed Sep 30, 2021
1 parent 87fb2e7 commit ab5b768
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 18 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

@license p3x-onenote v2021.10.130
@license p3x-onenote v2021.10.133

📚 P3X OneNote Linux

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@



# 📚 P3X OneNote Linux v2021.10.130
# 📚 P3X OneNote Linux v2021.10.133



Expand Down Expand Up @@ -228,7 +228,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://

---

[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2021.10.130
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2021.10.133

[![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)

Expand Down
2 changes: 1 addition & 1 deletion artifacts/arm.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://

---

[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2021.10.130
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2021.10.133

[![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)

Expand Down
2 changes: 1 addition & 1 deletion artifacts/new-language.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://

---

[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2021.10.130
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2021.10.133

[![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)

Expand Down
2 changes: 1 addition & 1 deletion artifacts/npm.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://

---

[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2021.10.130
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2021.10.133

[![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)

Expand Down
2 changes: 1 addition & 1 deletion bin/p3x-onenote.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Terminal=false
await utils.childProcess.exec('gtk-update-icon-cache || true');
}

await utils.childProcess.exec(`${__dirname}/../node_modules/.bin/electron ${path.resolve(__dirname + '/../')}`, true);
await utils.childProcess.exec(`${__dirname}/../node_modules/.bin/electron ${path.resolve(__dirname + '/../')} ${process.argv.join(' ')}`, true);
} catch (e) {
console.error(e);
throw e;
Expand Down
5 changes: 4 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

## Change log

### v2021.10.133
* FEATURE: Added `--minimized` argument.

### v2021.10.130
* BUGFIX: Fix Electron 14 error.

Expand Down Expand Up @@ -297,7 +300,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://

---

[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2021.10.130
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2021.10.133

[![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)

Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "p3x-onenote",
"version": "2021.10.130",
"version": "2021.10.133",
"description": "📚 P3X OneNote Linux",
"main": "src/electron/app.js",
"corifeus": {
Expand All @@ -11,7 +11,7 @@
"publish": true,
"type": "p3x",
"code": "Linux",
"nodejs": "v14.17.6",
"nodejs": "v14.18.0",
"reponame": "onenote",
"build": true,
"opencollective": false,
Expand Down Expand Up @@ -50,7 +50,7 @@
"homepage": "https://corifeus.com/onenote",
"dependencies": {
"@electron/remote": "^2.0.1",
"@fontsource/roboto": "^4.5.0",
"@fontsource/roboto": "^4.5.1",
"@fortawesome/fontawesome-free": "^5.15.4",
"angular": "^1.8.2",
"angular-animate": "^1.8.2",
Expand All @@ -60,7 +60,8 @@
"corifeus-utils": "^2021.10.129",
"electron-store": "^8.0.1",
"electron-updater": "^4.3.9",
"semver": "^7.3.5"
"semver": "^7.3.5",
"electron": "^15.0.0"
},
"devDependencies": {
"corifeus-builder": "^2021.10.131",
Expand Down
2 changes: 1 addition & 1 deletion scripts/start-local.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
./node_modules/.bin/electron --no-sandbox $DIR/..
./node_modules/.bin/electron --no-sandbox $DIR/.. $@
13 changes: 8 additions & 5 deletions src/electron/main/create/window/onenote.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function createWindow() {
global.p3x.onenote.window.onenote.openDevTools()
}

global.p3x.onenote.setVisible(true);
global.p3x.onenote.setVisible(process.argv.includes('--minimized') ? false : true);

global.p3x.onenote.window.onenote.loadURL(`file://${__dirname}/../../../window/onenote/index.html`);

Expand Down Expand Up @@ -78,13 +78,16 @@ function createWindow() {
})
});

if (!process.argv.includes('--minimized')) {
//const windowBounds = global.p3x.onenote.conf.get('window-bounds');
const maximized = global.p3x.onenote.conf.get('maximized');

//const windowBounds = global.p3x.onenote.conf.get('window-bounds');
const maximized = global.p3x.onenote.conf.get('maximized');
if (maximized === true) {
global.p3x.onenote.window.onenote.maximize()
}

if (maximized === true) {
global.p3x.onenote.window.onenote.maximize()
}

/*
else if (windowBounds !== null && windowBounds !== undefined) {
global.p3x.onenote.window.onenote.setBounds(windowBounds);
Expand Down

0 comments on commit ab5b768

Please sign in to comment.