refi64 / flextop

GNU General Public License v2.0
4 stars 2 forks source link

"TODO: add usage information & gotchas" (from README) #8

Open illtellyoulater opened 1 year ago

illtellyoulater commented 1 year ago

any progress with this, after 3 years? ;)

refi64 commented 1 year ago

lol yeah I forgot about that, as-is not a huge deal since only browsers use this & they all use it indirectly through Cobalt nowadays

illtellyoulater commented 1 year ago

ah ok! I ended up here while trying to learn more about the xdg-open dialog that shows up when trying to open a non http/https URL in the browser (like magnet:// or whatsapp://). Because whatsapp is not available natively on Linux, like everyone else I've installed web.whatsapp.com as a PWA and I was trying to understand if I could make it open/handle whatsapp:// links (for example whatsapp://send?phone=12345678900)

I ended up adding the following entry in ~/.config/mimeapps.list

x-scheme-handler/whatsapp=com.brave.Browser.flextop.brave-hnpfjngllnobngcgfapefoaidbinmjnm-Default.desktop;

which works quite as expected! Clicking on a whatsapp link in the browser will open the whatsapp PWA correctly, but no action will be performed, for example when clicking on whatsapp://send?phone=12345678900 the PWA opens but does not switch to 123456798900's messaging window (it will just stay in the main window with all past chats).

Yep, and have no idea why I told you all this lol, but of course you must be more knowledgeable than me for maintaining such an obscure piece of software like the one in this repo... ;)
Help me then, and I promise I'll close this issue peacefully 🤣