QL-Win / QL-Win/QuickLook

UWP URI Protocol Activation (Scheme URL)

Open
#428 5 comments 1 reaction 0 assignees View on GitHub

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:

  1. Use Windows Store Installation
  2. Open CMD
  3. Try start QuickLook.exe (or with any prams)
  4. See Error The system cannot find the file QuickLook.exe
  5. Try cd "C:\Program Files\WindowsApps\21090PaddyXu.QuickLook_3.6.4.0_neutral__egxr34yet59cg\Package" (where the executable is stored)
  6. See Access Denied Error (thanks UWP)
  7. Try start "C:\Program Files\WindowsApps\21090PaddyXu.QuickLook_3.6.4.0_neutral__egxr34yet59cg\Package\QuickLook.exe"
  8. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.