For win32 apps user can provide path of .exe to open a custom file type, this is especially helpful for text editor apps as it is impossible to declare all file types. But in uwp there is no way to do this, currently in this PR, I am implementing desktop extension so user can choose to open file with the extension which then redirects activation to the uwp app, but I am running into issues described here. My question is why isn't this supported by default, why aren't we allowed to support file types based on their content/mime type (which android does)??
One thing I want to add here: It is not possible to even rename a file without extension in UWP.
You can register extensions like ".txt" or ".md" with your app and your app can deal with them nicely but once you use StorageFile.RenameAsync to change a file from "file.txt" to "file", you will get blocked because your app do not have registration for that and there is no way to specify no extension registration with UWP, right?
One thing I want to add here: It is not possible to even rename a file without extension in UWP.
You can register extensions like ".txt" or ".md" with your app and your app can deal with them nicely but once you use StorageFile.RenameAsync to change a file from "file.txt" to "file", you will get blocked because your app do not have registration for that and there is no way to specify no extension registration with UWP, right?
Yes, also for Launcher.LaunchFileAsync()
if you pass any file type that isn't supported by uwp it won't open even if you specify TargetPackageFamilyName
and ContentType
in LauncherOptions
. It doesn't throw any exception or return any value the execution just stops.
They actually added that ability to Windows Insider recently.
What鈥檚 new in Build 19608
Improving your default apps experience
Over the years, we鈥檝e made a number of improvements to Settings based on your feedback, and we鈥檙e happy to share the next one is starting to roll out. We鈥檙e adding the ability to search the lists of file types, protocols, and apps when setting a default.Showing the Choose default apps by file type Settings window, now with a search box.
This change is currently available for 50% of Insiders in the Fast ring as we evaluate the quality. We鈥檒l let you know when that rollout increases. Please give it a try once it鈥檚 available on your device, and let us know what improvements you鈥檇 like to see next!
https://blogs.windows.com/windowsexperience/2020/04/15/announcing-windows-10-insider-preview-build-19608/
They actually added that ability to Windows Insider recently.
That's just adding search ability in default apps settings, that's not what the question is about.
closing in favor of https://github.com/microsoft/ProjectReunion/issues/27