microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.83k stars 6.58k forks source link

Peek from file explorer on android device #33100

Open nfenoglio opened 6 months ago

nfenoglio commented 6 months ago

Microsoft PowerToys version

0.81.0

Installation method

WinGet

Running as admin

No

Area(s) with issue?

File Explorer: Thumbnail preview, Peek

Steps to reproduce

when I press the shortcut, the preview send me an error image_2024-05-27 10_37_15

✔️ Expected Behavior

the preview was open

❌ Actual Behavior

No response

Other Software

No response

github-actions[bot] commented 6 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Agnibaan commented 6 months ago

hey i wanna work on this issue ... anyone want to help because i m new on this codebase.

htcfreek commented 6 months ago

@Agnibaan Feel free to open a PR. Your contribution is welcome. Thank you for your work on this. If you have any questions don't worry to ask them.

Agnibaan commented 6 months ago

@Agnibaan Feel free to open a PR. Your contribution is welcome. Thank you for your work on this. If you have any questions don't worry to ask them.

Can u give me some file reference like where should I work to address this issue?

htcfreek commented 6 months ago

@Agnibaan Feel free to open a PR. Your contribution is welcome. Thank you for your work on this. If you have any questions don't worry to ask them.

Can u give me some file reference like where should I work to address this issue?

No, sory. Thought you know this.

@jaimecbernardo any ideas?

Agnibaan commented 6 months ago

@Agnibaan Feel free to open a PR. Your contribution is welcome. Thank you for your work on this. If you have any questions don't worry to ask them.

Can u give me some file reference like where should I work to address this issue?

No, sory. Thought you know this.

@jaimecbernardo any ideas?

I have the idea but I just new to this codebase so I asked to save some time for searching... it's okay let me try ...

htcfreek commented 6 months ago

@Agnibaan Ah. Sory for the misunderstanding. Thought you expected an exact file path.

You find the Peek files here: https://github.com/microsoft/PowerToys/tree/main/src%2Fmodules%2Fpeek .

Agnibaan commented 6 months ago

@Agnibaan Ah. Sory for the misunderstanding. Thought you expected an exact file path.

You find the Peek files here: https://github.com/microsoft/PowerToys/tree/main/src%2Fmodules%2Fpeek .

i think there is no file handler which is handling the connected android device files for peek right? or i m missing something?

htcfreek commented 6 months ago

@Agnibaan Ah. Sory for the misunderstanding. Thought you expected an exact file path.

You find the Peek files here: https://github.com/microsoft/PowerToys/tree/main/src%2Fmodules%2Fpeek .

i think there is no file handler which is handling the connected android device files for peek right? or i m missing something?

Don't know. Thought @jaimecbernardo ?

jaimecbernardo commented 6 months ago

@Agnibaan Ah. Sory for the misunderstanding. Thought you expected an exact file path. You find the Peek files here: https://github.com/microsoft/PowerToys/tree/main/src%2Fmodules%2Fpeek .

i think there is no file handler which is handling the connected android device files for peek right? or i m missing something?

Don't know. Thought @jaimecbernardo ?

File handlers are usually for file types. This might be something in terms of file resolution when we select it. Not sure about what specificities happen when File Explorer opens files inside of an Android file system, but maybe those are being hit. I think the best way to check what's happening might be first looking into the logs in "%localappdata\Microsoft\PowerToys\Peek" to check what errors Peek is actually reporting.

drawbyperpetual commented 5 months ago

It looks like modern Android devices tend to mount as "devices" rather than as regular drives. Explorer provides special handling for browsing these devices, but the files on their file-systems, unlike with drive-mounting, don't have regular paths that are usable for reading their contents from within Windows applications. All Peek previewers currently need usable paths for reading files.

File-Explorer add-ons don't seem to have this problem as Explorer seems to be very helpfully creating temporary copies of these files on the local file system (in the Temporary Internet Files folder, to be exact) before handing them to preview handlers.

Two potential ways we can fix this in Peek are: