Step 1: Create .desktop file: ~/.local/share/applications/mbpy.desktop
[Desktop Entry]
Name=mbf4t
Exec=python3 '/home/m1/Documents/script/bash/mb/tools/web/chrome_xdgopen.py' %u
Type=Application
NoDisplay=true
Categories=System;
MimeType=x-scheme-handler/mbpy;
Step 2: Update mime database
update-desktop-database ~/.local/share/applications
Step 3: Test if it is working:
xdg-open "mbpy://mbtest::::param1::::param2"
Step 4: To make it work in a website:
< a href="mbpy:mbtest::::param1" > Test < / a>
Test
Test2
It may need some changes in Chrome settings:
- chrome://settings/content/insecureContent
- chrome://settings/handlers