some notes
This package is built with https://releases.electronjs.org/release/v11.4.0
how to find out:
In package, there is a "notion-app",strings notion-app | grep electron | less
then /-ele
So it's possible to just use system electron11. / Or maybe just use higher version to fix below problem.
then in the resources folder, we can find the app.asar
, then we can asar e app.asar ./app
, then in the app folder.
patchstring="
function at(n) {
// ToInteger() abstract op
n = Math.trunc(n) || 0;
// Allow negative indexing from the end
if (n < 0) n += this.length;
// OOB access is guaranteed to return undefined
if (n < 0 || n >= this.length) return undefined;
// Otherwise, this is just normal property access
return this[n];
}
const TypedArray = Reflect.getPrototypeOf(Int8Array);
for (const C of [Array, String, TypedArray]) {
Object.defineProperty(C.prototype, "at",
{ value: at,
writable: true,
enumerable: false,
configurable: true });
}
"
printf "%s\n" "$patchstring" >> renderer/preload.js
cp -av app
to it's position. That's it.
Pinned Comments
jamezrin commented on 2021-05-29 12:35 (UTC) (edited on 2021-12-26 21:39 (UTC) by jamezrin)
How to use Notion Enhancer:
For anyone wanting to use notion-enhancer, I highly recommend using https://aur.archlinux.org/packages/notion-app-enhanced/ instead.
notion-app-enhanced is built on top off this (notion-app) package and has notion-enhancer embedded in the final package. It doesn't require any manual steps to use.
How to fix weird Emoji characters:
Please, take a look at the following blog post: https://pat-s.me/emoji-support-for-notion-so-on-linux/