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
Fix linux installation #4
Conversation
looks good... I'll check it out properly after school. i didn't know there was a linux app? |
There is a Linux app and it's about the same as the windows version thanks to electron. |
Ah, thanks, looks like it's an unofficial build. There are a couple around - e.g. https://github.com/puneetsl/lotion, https://github.com/JosephDev/notion-linux-wrapper. I don't really have access to a Linux installation I can test a GUI app on at the moment... would you be able to give these all a go and find out which works best and relevant filepaths, etc.? Also, what's the benefit of repacking the asar? It runs fine without, and I'm going with the idea that the "enhanced/customised" version should be kept easily identifiable as separate to the packed version Notion provides. |
alright will test on these and report shortly |
lotion installs itself in whatever directory it was cloned in so there is no way to determine its exact location, and the other one is a wrapper ie it just opens the site in a window and doesn't have any local resources. so neither would work with this, I will try to locate lotion installation folder if that's possible about repacking asar, it didn't start for me without repacking it, seems like the Linux version looks for app.asar specifically and not the app folder I will add a check to only repack if the platform is Linux, that should leave it unchanged for other platforms |
just found this: puneetsl/lotion#31 |
Right. Looks like their injection method is actually based off an old version of the enhancer, but yeah I'll leave it alone for now. Before I merge, couple other things - Can you revert L32: this will completely break it on windows, as it checks specifically for the WSL. As it checks there specifically for both Windows and Linux, changing that back won't interfere with Linux compatibility. If you look at L50-92, it checks for the presence of the I suggest:
|
the scripts current behavior always rewrites the backup, I just found the launch file and if pointed to app directory it launches the app without any issues, maybe the customizer could change app.asar to just app, this way no need to repack and the original app.asar always exists the line second to last is what needs to be changed to unify the behavior on Linux as well |
ok I've modified the script to patch the launcher but that means the customizer has to be run as root, not a big deal if you ask me |
Signed-off-by: blacksuan19 <i@blacksuan19.me>
I think it's ready now
|
Awesome! Before I merge README will need to be updated with details on Arch Linux app installation (as it's likely people will miss the Linux package since it's not on the website or get confused and think it applies to them when it doesn't). Could you add that quick? It's probably just one command to install, but I don't have any experience with the AUR, so... I've found something for Ubuntu too (https://github.com/jaredallard/notion-app), so giving that a test run now. |
I'll update the readme shortly |
No description provided.