-
-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatibility with latest AUR notion-app package #467
Comments
Well I can try and patch the script manually, no problems with that. I'll get to work soon. |
@dragonwocky I am afraid #460 doesn't resolve the issue @jamezrin mentions since it addresses a change that affected a previous version (and concerned only the shell launcher which is a no more) in the new version |
@materemias ah, I see, sorry. missed that. I'll fix this properly eventually, after I've released the extension, but until then I'm recommending most Linux users to just go with https://github.com/davidbailey00/notion-linux since it doesn't have any of the patching problems everywhere else does atm afaict. Don't think it supports Arch, though. |
@dragonwocky |
@jamezrin apologies if this is a silly question, I haven't had a lot of experience with how the AUR works. Would it be worth considering working with @davidbailey00 to create a single, universal Linux port of Notion so there could be consistent releases of Notion and simpler support by things like the enhancer? |
This is probably because I haven't updated it to support the latest Notion versions at this time - new versions require a native dependency which I'm not able to cross-compile for ARM platforms, although I doubt many people are using ARM-based Linux at the moment so I could just drop support for it. I'm also unsure if I'm in the best position to continue maintaining notion-linux as I no longer use either Linux (as a desktop OS) or Notion - I use Craft and Windows/macOS nowadays - although that's a different matter to the issue being discussed here |
Definitely, but as far as I know notion-linux builds on top of notion 2.0.11 instead of 2.0.16 (which the AUR package currently builds)
Bummer 😿 notion-linux is so awesome, are you open for contributions even if you might not be able to test them? |
Yes! Anyway, I can still test stuff in a VM, just it's a little more awkward than running Linux as my primary OS. Sidenote, I think the latest version of Notion builds fine on x86, but building the |
The main difference between them is how the packaging is done / the directory in which the application is installed - otherwise they are more or less the same already. The AUR is inherently tied to Arch, and I'm using |
When working in the AUR, the preferred approach normally is to build the package ourselves and install directly to the pkgdir instead of building a rpm, deb, etc package. When a user installs something from the AUR, most of the time it's going to build from source, or adapt a deb or rpm package to work on Arch. Taking a look at notion-linux, we do things in pretty much the same way, the biggest difference I see is that notion-linux is using electron-packager and notion-app AUR package is using electron-builder instead. |
I got notion-enhancer to work with 2.0.16 of AURs notion-app, but it's worse than I expected. This is after applying the fixes listed at https://www.notion.so/dragonwocky/hack-v0-10-2-to-work-with-notion-s-v2-0-13-app-a4ab1267e67b4126b6448641ca4a0041 I had to do some changes for it to be able to patch 2.0.16 and I don't know if I messed something else up, but this is how the main window looks I guess it's better for now to stay on 2.0.11 @materemias |
this looks extra borked :) hopefully it's not that hard to fix... can you write down how you got here? I would try to fix it |
Aha, I remember encountering this same issue after applying the fixes outlined here to notion-linux - looks like this is a generic Linux problem |
Actually, after trying to run it again it didn't have this problem, I don't know... It's weird.
Do a clean install of AURs notion-app, clone https://github.com/jamezrin/notion-enhancer and inside that directory run The electron binary still looks for the asar file, so the desktop launcher will not work. To workaround it, install electron11 and run That should get you an enhanced 2.0.16. I tried packing that I see a good solution to this, which is to make another AUR package that has notion-enhancer applied before the repackage phase, that should work pretty good. I'm still thinking if I should do it considering the instability and graphical problems that might arise, but it's that or nothing. |
I will try that and report back how it works, having a separate aur package seems to be a good idea |
@jamezrin this seems all cool on my side, I guess it also depends on what enhancements are enabled... |
Alright, I'm going to go ahead and create a new AUR package which will integrate notion-enhancer. It seems to work pretty okay for me as well. It's going to be much easier this way, but I see 2 improvements notion-enhancer could benefit from:
|
@jamezrin that specific issue is actually an old bug that seems to pop up again every time I think I've fixed it... on some (but not all) launches of the notion app it applies some extra CSP headers somewhere the break the custom protocol the enhancer uses for adding css, which is why things look messed up. I have actually found a working solution for this (replace
The https://github.com/notion-enhancer/notion-enhancer/tree/rework branch does take steps towards this, containing notion-enhancer's code inside the
https://github.com/notion-enhancer/notion-enhancer/blob/rework/bin.js#L41 |
I wasn't able to patch latest version of The latest version I managed to patch and run successfully is 2.0.8-4. I'm pretty sure I was able to apply notion enhancer successfully to a latest version back in early April, but I couldn't get any of the April versions enhanced successfully now for some reason. |
@dklymenk i think it might be because you have the folder .notion-enhancer in your home directory and some config files and cache of notion and notion-enhancer. Regards |
also, @jamezrin there is a small error in the code in your fork of notion-enhancer, specifically in pkg/apply.js |
yeah, I'm not surprised things like that are not what one would expect. the fork is a messy draft just to get notion-enhancer to work. I appreciate your feedback but I plan on retiring that repo for something better, so that people don't have to do all these manual steps by themselves. I'm talking about https://github.com/jamezrin/notion-app-enhanced-PKGBUILD/, but it's non-functional at the moment, I'm going to try again this weekend and see if I can finally get it to work. |
I understand, and I am looking forward to an enhanced notion package in the aur! go arch! |
I have released a new AUR package that has notion-enhanced embedded in the build process, it is available at https://aur.archlinux.org/packages/notion-app-enhanced/ and you just have to install it, it should work without any extra steps. Please let me know if the package works correctly for you all, I highly recommend using it instead of applying notion-enhancer manually. |
Thanks for that @jamezrin it builds properly, glitches I have found: window buttons are gone regardless if integrated titlebar is enabled or not and themes seem not to apply to main window edit: only integrated buttons are wrong, I think there is an unnecessary fix applied somewhere, since git repo's dev branch applied had no such side effect |
this is something I have experienced before, after a while it fixed itself (???)
|
I will keep monitoring, do themes apply for you? |
yep, it just started to work for me... don't know why |
No longer relevant, closing! |
I am the maintainer of the notion-app AUR package and I have made changes to the final install that makes it incompatible with the current notion-enhancer.
What I believe is happening right now is that when notion-enhancer is applied, it tries to patch the binary
/opt/notion-app/notion
, resulting in a corrupted binary.I am aware that notion-enhancer is not ready for 2.0.13+ but I think the problems of compatibility with the AUR package could be solved changing https://github.com/notion-enhancer/notion-enhancer/blob/dev/pkg/helpers.js and https://github.com/notion-enhancer/notion-enhancer/blob/dev/pkg/apply.js to the current installation.
As of now, I am extracting the resources right out of the windows build and recreating the electron package myself using these resources. I make some changes to that source code myself so I'm not sure if that will make it outright incompatible with notion-enhancer's patches.
Anyway, I will try to get notion-enhancer to successfully patch notion-app and will submit it as a PR.
The text was updated successfully, but these errors were encountered: