UWP URI Protocol Activation (Scheme URL)
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 24.7k
- Forks
- 1.3k
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 1
Description
Describe the bug
I can't seem to be able to launch QuickView from my own custom file manager as described here when using the Windows Store installation.
To Reproduce
Steps to reproduce the behavior:
- Use Windows Store Installation
- Open CMD
- Try
start QuickLook.exe(or with any prams) - See Error
The system cannot find the file QuickLook.exe - Try
cd "C:\Program Files\WindowsApps\21090PaddyXu.QuickLook_3.6.4.0_neutral__egxr34yet59cg\Package"(where the executable is stored) - See Access Denied Error (thanks UWP)
- Try
start "C:\Program Files\WindowsApps\21090PaddyXu.QuickLook_3.6.4.0_neutral__egxr34yet59cg\Package\QuickLook.exe" - CMD can't find anything and falls back to opening a new command line
Running as admin doesn't seem to help either.
Expected behavior
I don't know how easy it is to include UWP features/code: a possible solution for this is to create a URI activation 'hook': then it could be launched with something like quicklook://"C:\Users\andrew\Desktop\panels.log". You might have to encode/decode that: not sure if it likes \.
See this article for more information on handling a uri activation.
I think that solution might be a bit clunky: It seem to be the solution taken by all other UWP apps including Microsoft's own. I am not super familiar with the code of your app. It really depends if you are adding any extra UWP code already. In fact it might be easier to create a similar uri 'hook' from your 'traditional' app on install/started or whatever.
Alternatively I could bundle QuickLook with my file manager: but this brings about many issues like licensing/updates/any settings that might be introduced in the future etc.
Thanks,
Andrew Mitchell
Desktop:
- OS Version: Windows 10 Pro 10.0.17134
- QuickLook Version: 3.6.4
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the CMD launch failure with the Windows Store installation, then read the linked Integration and Development wiki page and Microsoft's URI activation article. Identify the Store package's activation entry point and determine how a quicklook:// URI should carry the requested file path. Done means a custom file manager can launch QuickLook through that URI and open the specified file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100