Package Details: notion-app 1:2.0.8-4

Git Clone URL: https://aur.archlinux.org/notion-app.git (read-only, click to copy)
Package Base: notion-app
Description: The all-in-one workspace for your notes and tasks
Upstream URL: https://www.notion.so/desktop
Keywords: kanban markdown notes task
Licenses: MIT
Submitter: pat-s
Maintainer: jamezrin (Orangutan)
Last Packager: jamezrin
Votes: 23
Popularity: 2.55
First Submitted: 2019-02-27 14:00
Last Updated: 2020-10-15 19:53

Pinned Comments

pat-s commented on 2019-04-07 12:41

If you are missing emoji support, take a look here: https://pat-s.me/post/emoji-support-for-notion-so-on-linux/

Latest Comments

1 2 3 4 5 Next › Last »

jamezrin commented on 2020-10-15 20:30

Thanks for your awesome development. I have added what you said would be needed to support the notion protocol scheme.

I don't think patching notion ourselves is something I'm willing to maintain myself, it could potentially make it more difficult for notion-enhancer to work and honestly, I'm not very interested on all the tricky business involved.

I have added you as a co-maintainer in case you want to make changes on your own, I don't want to put any responsibilities on top of anyone's shoulders but I just thought you wouldn't mind.

It's awesome notion-enhancer maintainer was so quick to make the patch you suggested. I'm not sure what is the best way to advertise it in this package, or if it shouldn't encourage it at all, but I think it's very useful and a must-have for some people. Anyway, I have added it as an optional dependency.

Orangutan commented on 2020-10-15 15:52

notion-enhancer makes the relevant patch as of v0.10.0

See https://github.com/dragonwocky/notion-enhancer/issues/160 for more info

This means this package just needs to add the scheme to the desktop file (just adding %u will work, no need to create another desktop file for the scheme handler), update the wrapper so it passes arguments as expected and possibly add notion-enhancer as an optional dependency (this might be a bit weird since there would technically be a dependency loop, but since it’s optional I think it’s fine)

Orangutan commented on 2020-10-14 21:56

I've managed to get the URL scheme working!

First of all, modify the .desktop:

  • MimeType=x-scheme-handler/notion

  • Exec=/opt/notion-app/notion-app %u

It may be beneficial to separate the URL handler desktop file.

Then have the notion-app wrapper actually pass in arguments:

electron6 app.asar $@

Then the annoying part: modifying the main electron script. Notion actually already supports passing in the URL, but only on Windows (just a simple hard coded if statement). You can update this to something like if (process.platform === "win32" || process.platform === "linux") { The line below should be const url = argv.find(arg => arg.startsWith(config_1.default.protocol + ":"));

To get access to main.js, you can extract the app.asar with npx asar extract app.asar EXTRACT_DIR. To actually use your modified app, you can either pack the asar again and replace the original app.asar, or just replace app.asar in the wrapper with the path to the extracted directory.

I'm not sure what the best way to patch this is, requiring nodejs as a make dependency might be annoying for NVM users (I use https://github.com/FabioAntunes/fish-nvm). It might make sense to makedepend on community/asar, extract, apply a patch part of the repo then pack again during the build process. I've created an issue on notion-enhancer for this so this package only needs to make modifications to the .desktop and wrapper, but without the patch Notion will still be launched when clicking on a notion:// link just without actually opening the relevant page, so it may be unexpected to have this not work without notion-enhancer. If patching wasn't part of this package then maybe making notion-enhancer an optional dependency would make sense (if/when this is implemented to it).

While investigating and figuring this out, I noticed an error relating to spell check, something I haven't got to work. I don't know if this is a Notion issue (I'm fairly new to Notion and have seen plenty of complaints about Notion's spell check) or an issue with this package, but I don't have the error reported in my console when using my browser. Getting spell check to work may require a patch, for example, Discord's spell check does not work on Linux but uses the OS' provided spell check on Windows and macOS.

I appreciate this package so hope I've managed to contribute!

jamezrin commented on 2020-10-14 21:13

@Orangutan I tried fixing this a while back and I realized I was better off rewriting the wrapper app from scratch. Never got to finish it, some day I will continue work on it.

https://github.com/dragonwocky/notion-enhancer supports this package, so they might know how to get the URL scheme to work, they seem to be patching the ASAR contents for other features.

Orangutan commented on 2020-10-14 20:08

I tried to get the URL scheme working but no luck. It seems macOS uses some native things so that's a dead end and I don't have much experience with electron. Figuring out how the URL is passed to Notion is the most important part as the only ways I can find are native (and I can't find any tools that allow running a macOS/Windows protocol handler on Linux). For example, VSC uses code --open-url %U.

This might even mean you would have to extract the app.asar, patch some files to add the ability to use a CLI arg instead of any native code and then run that. It might also be possible to create a wrapper script that uses the native functions macOS uses but there might not be any tools for that.

Hopefully there are some electron users who know more about how programs usually deal with URL schemes and how to start Notion with a specific URL.

mlec commented on 2020-10-06 07:19

@farzadmf I'm also having this issue. Were you able to resolve?

ljmf00 commented on 2020-10-05 19:04

Can you add the notion-app icon to the /usr/share/pixmaps/ folder instead? Please follow the icon path from freedesktop standard. See more here https://wiki.archlinux.org/index.php/Desktop_entries#Icon_path .

xuanwo commented on 2020-08-07 11:30

-> Orphaned AUR Packages: electron6

electron6 has been removed.

farzadmf commented on 2020-07-27 19:51

@jamezrin thank you for your answer, I figured the fix shouldn't be trivial.

The good thing is that I can directly use my Gmail address to log in (i.e., clicking the "Continue with email" button), so it seems that the "Continue with Google" think is a nice to have, but not mandatory

jamezrin commented on 2020-07-26 23:20

@camilojm You could of googled "notion deb" and you would of got a link to https://github.com/davidbailey00/notion-deb-builder as well as some reddit threads and other things about the matter...