Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom URI schema for a Linux application

Tags:

linux

uri

I would like to use a custom URI schema to open my application from a wepage in the browser. It is quite easy on OS X and iOS, it seems to work on Android and it is possible on Windows but I need it for Linux.

What it should do is if there is a link like this in a webpage:

<a href="bungloo://?code=1234">Open in Bungloo</a>

then it should open my own app (called Bungloo) and give it this URL so I can use it to do stuff.

I need that for OAuth authentification callback. I can not use a custom webview to do that because very often those use old versions of webkit which doesn't support CORS which the provider uses in the Authentication process. I neither can turn off cross origin security for the webview because this functionality is not exposed to PyWebkit which I use.

I also understand that I need to do that in some way for every desktop environment (at least KDE and Gnome) but sadly I am not able to find any documentation on about how to do that.

like image 837
Jeena Avatar asked Sep 11 '25 13:09

Jeena


1 Answers

Have you tried this for GNOME and this for KDE?

Have you tried this?

like image 120
L3viathan Avatar answered Sep 14 '25 07:09

L3viathan