github-education-resources / classroom-assistant

Clone student repositories in bulk
https://classroom.github.com/assistant
MIT License
116 stars 39 forks source link

Error opening x-github-classroom:// on XFCE with workaround #186

Open klaeufer opened 4 years ago

klaeufer commented 4 years ago

OS: GalliumOS 3.1 (based on Xubuntu 18.04)

When starting classroom-assistant, the following error message appears

[16:36:05.820] [warn] Failed to set Protocol Handler on Linux: Error: Command failed: xdg-settings set default-url-scheme-handler x-github-classroom classroom-assistant.desktop
xdg-settings: default-url-scheme-handler not implemented for xfce

During the subsequent OAuth sequence, the redirect from the browser back to classroom-assistant does not work.

It started working after executing the following command, which seems to be more widely supported than xdg-settings:

xdg-mime default classroom-assistant.desktop x-scheme-handler/x-github-classroom
dranidis commented 3 years ago

OS: 5.10.2-2-MANJARO KDE

Same problem here.

Adding the line:

MimeType=x-scheme-handler/x-github-classroom

in /usr/share/applications/classroom-assistant.desktop did the trick for me.

Run:

sudo update-desktop-database

after editing.