- onenote.git
- bin
- p3x-onenote.js
This file ( 592B ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
#!/usr/bin/env node
const utils = require('corifeus-utils');
const path = require('path');
const mz = require('mz');
const start = async() => {
await mz.fs.writeFile(`${process.env.HOME}/.local/share/applications/p3x-onenote.desktop`, `[Desktop Entry]
Version=1.0
Type=Application
Name=P3X Onenote
Icon=${path.resolve(__dirname + '/../src/electron/images/icon.png')}
Exec=${__filename}
Comment=https://www.patrikx3.tk
Categories=Office;
Terminal=false
`)
utils.childProcess.exec(`${__dirname}/../node_modules/.bin/electron ${__dirname}/../src/electron/main.js`, true);
}
start();