Page 1 of 1

How to open link from Telegram to defaultbrowser

Posted: Tue Jul 11, 2023 9:45 am
by watchdog

Open in geany /usr/share/applications/mimeapps.list and append the following two lines:

Code: Select all

x-scheme-handler/http=defaultbrowser.desktop
x-scheme-handler/https=defaultbrowser.desktop

Then open /usr/share/applications/defaultbrowser.desktop in geany and change the Exec line to:

Code: Select all

Exec=/path-to/browser-exec %u

Example:

Code: Select all

Exec=/usr/local/firefox/firefox %u

Run in terminal fixmenus and restartx. Done.


Re: How to open link from Telegram to defaultbrowser

Posted: Mon Sep 25, 2023 9:41 am
by watchdog

To open links in Telegram to defaultemail: open in geany /usr/share/applications/mimeapps.list and append the following line:

Code: Select all

x-scheme-handler/mailto=defaultemail.desktop

Then open /usr/share/applications/defaultemail.desktop in geany and change the Exec line to:

Code: Select all

Exec=defaultemail %u

Restart Jwm. Done.