Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Login via Google doesn't work #49

Open
Forinil opened this issue May 13, 2021 · 8 comments
Open

Login via Google doesn't work #49

Forinil opened this issue May 13, 2021 · 8 comments

Comments

@Forinil
Copy link

Forinil commented May 13, 2021

I tried to log in via Google and it failed while redirecting me back form the browser with error that there is no application registered for URL notion:/oauth2callback...

I solved this by creating file ~/.local/share/applications/Notion.desktop with contents

[Desktop Entry]
Type=Application
Name=Notion desktop application
Exec=notion-desktop %u
Icon=notion-desktop
StartupNotify=false
MimeType=x-scheme-handler/notion;
Type=Application
Categories=GNOME;GTK;Utility;

and then running

xdg-mime default Notion.desktop x-scheme-handler/notion

Later I found /usr/share/applications/notion-desktop.desktop (which, curiosly, is still returned as a default handler by command xdg-mime query default x-scheme-handler/notion) and compared it to the one I created and it seems that missing MimeType declaration might be the issue.

@Forinil
Copy link
Author

Forinil commented May 13, 2021

I forgot - I installed notion-desktop version 2.0.11-8_amd64 via apt and I'm running Kbuntu 20.04.2 LTS x86_64.

@SP-XD
Copy link

SP-XD commented May 19, 2021

I tried to log in via Google and it failed while redirecting me back form the browser with error that there is no application registered for URL notion:/oauth2callback...

I solved this by creating file ~/.local/share/applications/Notion.desktop with contents

[Desktop Entry]
Type=Application
Name=Notion desktop application
Exec=notion-desktop %u
Icon=notion-desktop
StartupNotify=false
MimeType=x-scheme-handler/notion;
Type=Application
Categories=GNOME;GTK;Utility;

and then running

xdg-mime default Notion.desktop x-scheme-handler/notion

Later I found /usr/share/applications/notion-desktop.desktop (which, curiosly, is still returned as a default handler by command xdg-mime query default x-scheme-handler/notion) and compared it to the one I created and it seems that missing MimeType declaration might be the issue.

Thanks It is working for me now, I am also in kubuntu 20.4 lts

@3rgo
Copy link

3rgo commented May 26, 2021

Just installed today (version 2.0.11-8) on Ubuntu 20.04.2 LTS, and this fix did not work for me.
I tried creating the new desktop entry and editing the existing desktop entry (in /usr/share/applications) to add the MIME Type, nothing changes.
Any help appreciated ! Thanks !

@Forinil
Copy link
Author

Forinil commented May 26, 2021

Just installed today (version 2.0.11-8) on Ubuntu 20.04.2 LTS, and this fix did not work for me.

I tried creating the new desktop entry and editing the existing desktop entry (in /usr/share/applications) to add the MIME Type, nothing changes.

Any help appreciated ! Thanks !

Did you set the desktop entry with the MIME Type as a default handler using xdg-mime command as described in my original post?

@3rgo
Copy link

3rgo commented May 26, 2021

Just installed today (version 2.0.11-8) on Ubuntu 20.04.2 LTS, and this fix did not work for me.
I tried creating the new desktop entry and editing the existing desktop entry (in /usr/share/applications) to add the MIME Type, nothing changes.
Any help appreciated ! Thanks !

Did you set the desktop entry with the MIME Type as a default handler using xdg-mime command as described in my original post?

Yes, and I also tried editing them to use the "default" notion-desktop app, nothing changed, no feedback in the app.
Maybe I did something wrong, I'm not very experienced in window manager configuration problems of this kind

@valin4tor
Copy link
Owner

I'm afraid I am no longer supporting this project, so I will not be looking into this issue. Please see the updated README for more information. I will leave the issue open, in case of a new maintainer who is able to look into it.

@3rgo
Copy link

3rgo commented Jun 11, 2021

I'm afraid I am no longer supporting this project, so I will not be looking into this issue. Please see the updated README for more information. I will leave the issue open, in case of a new maintainer who is able to look into it.

No worries, I've been using the web app in the mean time, I'll just keep using it :)

@SamuelFe
Copy link

Later I found /usr/share/applications/notion-desktop.desktop (which, curiosly, is still returned as a default handler by command xdg-mime query default x-scheme-handler/notion) and compared it to the one I created and it seems that missing MimeType declaration might be the issue.

Thanks It is working for me now, I am also in kubuntu 20.4 lts

Hi there! Also in Kubuntu 20.04.2 LTS here. The solution worked!

Quick way here:

sudo bash -c 'echo "MimeType=x-scheme-handler/notion;" >> /usr/share/applications/notion-desktop.desktop'

This will append the needed MimeType=x-scheme-handler/notion; into the original notion-desktop.desktop file.

Obs.: this assumes that notion-desktop.desktop is in /usr/share/applications/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants