-
lovetox
refering to https://blog.prosody.im/great-invitations/
-
lovetox
The “magic link” feature provides the most seamless flow. The user follows the link to install the app, and the invite token is magically discovered by the app after it is installed.
-
lovetox
is this something smartphone specific, or is there a technic to make that happen on desktop?
-
Ge0rG
lovetox: this is a feature of Google Play called install referrers. https://developer.android.com/google/play/installreferrer
-
lovetox
pep., the user tells you its tor, i talk about the case when a user configures the proxy in the client
-
lovetox
if he configures it on the system you can’t know anything anyway, so not much to handle there
-
MattJ
lovetox: a magic link for desktop is probably possible with certain constraints
-
MattJ
Ge0rG reported that MS Teams even does something along these lines
-
lovetox
yeah seems i can do this on windows
-
lovetox
linux seems a bit impossible
-
Ge0rG
MattJ: I'm sure the "magic" in MS Teams is that you get a small personalized installer&downloader EXE
-
MattJ
I can imagine downloading a generated install script
-
lovetox
https://nsis.sourceforge.io/ReadCustomerData
-
lovetox
nsis is a popular installer on windows
-
MattJ
Looks neat, that's exactly what's needed
-
MattJ
I'm sure similar could be done on Linux, but it's harder yes :)
-
MattJ
Since there are so many possible Linux environments
-
lovetox
nsis script language is .. i hate it
-
flow
hmm, place magic file in ~/.local/share/$xmpp-client/my-magic-file and execute xmpp-client? question is probably "who does place the magic file?"
-
lovetox
bingo ..
-
pep.
`curl | sudo sh` problem solved!!
-
MattJ
There are so many ways :)
-
MattJ
Scraping browser history
-
MattJ
Ok ok
-
MattJ
Assuming the page remains open, it could also try to connect to a server on localhost
-
MattJ
And when the XMPP client is installed, it opens a listening port
-
MattJ
And then offers to use the invite instead of the normal account setup flow
-
MattJ
Generating an install.sh is a less sneaky way, probably also the simplest and most adaptable
-
MattJ
But not quite as user-friendly I imagine
-
MattJ
Hmmmmmm
-
pep.
you also need to select your distribution etc.
-
Zash
Do these container/sandbox things support anything suitable?
-
MattJ
I doubt it because they generally aren't installed by default and thus have the same bootstrap issue, unless there are distros where they are installed by default and have a protocol handler
-
MattJ
I just checked whether apt:// allowed custom repositories, apparently not (well not enabled by default anyway)
-
pulkomandy
Could clipboard sniffing work? Detect an xmpp uri in the clipboard and do something?
-
pulkomandy
I think some torrent apps do that for magnet links
-
MattJ
Oooh
-
lovetox
but why would it be in the clipboard?
-
lovetox
clicking a link does not add it to the clipboard
-
pulkomandy
I think javascript can solve that?
-
MattJ
lovetox: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API
-
MattJ
> The clipboard-write permission is granted automatically to pages when they are in the active tab.