Closed schlagmichdoch closed 1 year ago
I've played around a bit with the snapdrop browserplugin... which i configured to use my pairdrop-server. I can receive files and text, send text, but not send files... in popup-mode.
So i found out, that it could open in sidebar. This looks like this:
So i think, this could also be a good idea. But i've no idea, how to manage this. It's Firefox esr from debian 102.8
Awesome that the extension works with PaiDrop. I will add it to the FAQ. However, there is no setting to open new tabs with the extension yet, is it?
Awesome that the extension works with PaiDrop. I will add it to the FAQ. However, there is no setting to open new tabs with the extension yet, is it?
For sure. I can choose, to open in popup, new tab or sidebar. 😊
Popup does not work correctly. When i choose a file from filechooser, the connection closes. But sidebar works perfectly. And it's enough for me.
You use xdg-open. Sorry, i don't know, how to parametrize the call, to open a website in Sidebar from there...
After some consideration I think this overcomplicates things and is unintuitive for new users. I'll therefore close this issue.
It's ok :)
The following comments were deleted by GitHub (via hubot) as part of mistakenly marking this account as spam on 17th February 2024. The correct thread order and the creation date is unclear. I decided to manually restore them anyway in order to complete the information this issue holds even though the restored information might be outdated:
I got that, but do new instances also open in the sidebar if launched via pairdrop-cli?
Originally posted by @xundeenergie in https://github.com/schlagmichdoch/PairDrop/issues/39#issuecomment-1439890973
This is a more general problem so I moved it to this issue to be discussed.
I like the idea of being able to reuse open tabs instead of opening another one, it should however still be possible to open PairDrop in multiple tabs. There is a draft for focusing existing instances for PWAs using manifest.json:
This is not implemented in many browsers and only works if the PWA is installed on the device with the default browser: https://developer.mozilla.org/en-US/docs/Web/Manifest/launch_handler#browser_compatibility Opening urls in existing tabs is not per se possible
So I think about letting the tabs communicate to each other to find out whether another tab is already open and if yes, load the url there and close the new tab.
Tabs are indeed able to communicate with each other using a modern API: https://developer.mozilla.org/en-US/docs/Web/API/Broadcast_Channel_API
Possible Workflow:
--use-existing-tab
/-u
)?focus_existing=true
window.close()
@xundenergie Do you think this would be sensible?