How to open link from Telegram to defaultbrowser

Moderator: Forum moderators

Post Reply
watchdog
Posts: 85
Joined: Fri Dec 13, 2019 4:32 pm
Has thanked: 15 times
Been thanked: 12 times

How to open link from Telegram to defaultbrowser

Post 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.

watchdog
Posts: 85
Joined: Fri Dec 13, 2019 4:32 pm
Has thanked: 15 times
Been thanked: 12 times

Re: How to open link from Telegram to defaultbrowser

Post 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.

Post Reply

Return to “Browsers”