Comments (3)
Hi @mundodisco8
Thanks for including screenshots in your issue!
This issue is only present when installing PairDrop as PWA with the File Handler API enabled.
With this experimental API enabled, on installation, the PWA registers itself as an application to open certain files with. The app is then included in the "open with" dialog and Windows allows you to open certain files with this app. Propably PairDrop is registered as the default app for a certain file type if no other app on the machine is associated with this file type.
As we want to send any file with PairDrop via the context menu I tried to add as many file types as possible.
This is all desired behaviour and enhances the app a lot IMO.
If you take a look at the New App Alert ("Select an app to open this [...] file with") you can see that the default app has not changed upon installation (still Notepad for .txt) but Windows simply alerts you that there is a new app installed that can handle this file as well.
Although you only have to select the default app and press "Always" once for every file type you open, I see the inconvenience.
As far as I know, this behaviour cannot be changed via the apps manifest as it is standard Windows behaviour. It is however possible to prevent windows from opening the new app alert completely via the registry:
https://www.elevenforum.com/t/enable-or-disable-open-with-when-new-app-installed-in-windows-11.5292/#Two
(The naming in the article is a little misleading: You need to do step 3 'Disable Open with when New App Installed')
Independently from PairDrop, I like this behaviour better for any installation.
What do you think? Does that solve your issue?
from pairdrop.
I tried the registry edition trick on Windows Sandbox and it didn't work, but I don't know if that was caused by the sandbox itself, somehow. If I try it outside of the sandbox I will report. In any case, I'm not comfortable disabling that functionality completely.
I see that this behaviour is by design then, and while I humbly disagree, I totally see your point and the value of your proposition.
In any case, after toying around a bit, I think I cracked it. If I install the app with Chrome, I can disable the access to the File Handling API for just the Pairdrop app (Hamburger menu, App Info, Settings)
I haven't managed to find the equivalent toggle for the case of the app being installed from Edge, but who doesn't have 3 or 4 web browsers installed on their computer, right? 😄
This does exactly what I personally need. Given that the issue is not a bug, I will close it.
from pairdrop.
Did you check, that the result of the registry edition was "NoNewAppAlert"=dword:00000001
?
Perfect that you found a solution! I didn't know that the File Handling API is activated by default on Chromium. Nice!
That the setting is not offered on Edge is weird. I even tried to open the URL via the app id edge://app-settings/APP_ID
but I'm just redirected to the normal settings page without a setting to deactivate the File Handling API. Edge is weird 🤦♂️
There is another possiblity though: The manifest of the web app is specified in the header. When I changed <link rel="manifest" href="manifest.json">
to <link rel="manifest" href="manifest_no_file_handlers.json">
which omits the file_handlers setting and updated the service worker afterwords, an already installed app was removed from the 'open with' dialog.
So it would be possible to create a setting which toggles the manifest replacement and serviceworker update.
I won't implement this for now but if more people find the current behaviour annoying this could be a possibility. Until then I will simply recommend your solution but with ungoogled-chromium instead: https://github.com/ungoogled-software/ungoogled-chromium (Downloads)
from pairdrop.
Related Issues (20)
- Remove extra back quote (`) from the command in documentation HOT 1
- [Bug] URL not clickable HOT 3
- [Enhancement] Automatic reconnect on error
- [enhancement] Add environment variable to set manifest variable `"display": "standalone"`
- [Enhancement] Enable adding new translations on Hosted Weblate HOT 2
- [Enhancement] If using client mode, do not send peers from another ws-domain
- [Question] HOT 1
- [Enhancement] Correct spelling error HOT 1
- Why did this repository disappear? HOT 12
- [Enhancement] Bring back the water ripples background animation HOT 1
- [Enhancement] Option: do not zip files and send them all individually HOT 1
- [Enhancement] Make sending and drag'n'drop of folders possible
- [Enhancement] If pasting or sharing text, make clearer what is shared
- [Enhancement] Native clients via Flutter HOT 1
- [Enhancement] Change font to Open Sans
- [Enhancement] Increase limit for sending to iPhones (200MB) by rewriting FileChunker / FileDigester HOT 1
- [Enhancement] Add Kannada language HOT 1
- [Bug] Buttons do not change color on hover
- [Enhancement] Add in-app QR-code scanner
- [Bug] Switching public rooms does not disconnect from devices in old public room
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pairdrop.