Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launcher.LaunchFileAsync fails for opening a file extension associated with a desktop app

I am trying using file association to open a desktop app from modern app. I followed all the steps correctly and am able to open the .try files with updater.exe through windows explorer. But when I try to do the same thing in my modern app programmatically, using

bool success = await Launcher.LaunchFileAsync(file);

I am getting the return value as false all the time. This works if I use DisplayApplicationPicker. What is going wrong here?

like image 766
Rashi Anand Avatar asked Dec 29 '25 11:12

Rashi Anand


1 Answers

This is a know bug and there is no way for this to work if the user did not choose your app as least once. If you need inter-app communication, you can use "protocol association" which works every time.

Regards.

like image 70
Jonathan ANTOINE Avatar answered Jan 03 '26 15:01

Jonathan ANTOINE



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!