Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Make Windows "Open With.." Dialog Load the Image #268

Open
2 tasks done
ghost opened this issue Apr 7, 2023 · 10 comments
Open
2 tasks done

[FEATURE REQUEST] Make Windows "Open With.." Dialog Load the Image #268

ghost opened this issue Apr 7, 2023 · 10 comments
Labels
enhancement New feature or request help-wanted Extra attention is needed

Comments

@ghost
Copy link

ghost commented Apr 7, 2023

Checklist

  • I have checked that this issue isn't addressed in the FAQ.
  • I have checked that this issue isn't addressed in any other issue or pull request.

Related Problem(s)

Right-clicking an image in Windows and selecting open with Upscayl only opens the app, it does not load the image.

Description

App should open with the selected image loaded.

Alternatives

No response

@ghost ghost added the bug Something isn't working label Apr 7, 2023
@aaronliu0130 aaronliu0130 added enhancement New feature or request and removed bug Something isn't working labels Apr 7, 2023
@aaronliu0130 aaronliu0130 changed the title Windows dialog option "open with.." opens app but does not load the image. Make Upscayl Load the Image when the Image is Opened with Upscayl in Windows Apr 7, 2023
@aaronliu0130 aaronliu0130 changed the title Make Upscayl Load the Image when the Image is Opened with Upscayl in Windows Make Windows "Open With.." Dialog Load the Image Apr 7, 2023
@NayamAmarshe
Copy link
Member

That won't be possible for now. I cannot spend my time on a Windows only feature. Electron builder does not seem to support file associations for MacOS and Linux, so unfortunately, I'd have to mark this as unplanned.

PRs are always welcome though, if someone wants to, they can submit a PR for the feature.

@NayamAmarshe NayamAmarshe closed this as not planned Won't fix, can't repro, duplicate, stale Apr 11, 2023
@aaronliu0130
Copy link
Member

@NayamAmarshe I don't think this is asking for a file association, I think it's when the file is opened with upscayl (which i think is processed as 'upscayl/upscayl.exe "file name.jpg"') the image gets automatically loaded into the select image button

@NayamAmarshe
Copy link
Member

@NayamAmarshe I don't think this is asking for a file association, I think it's when the file is opened with upscayl (which i think is processed as 'upscayl/upscayl.exe "file name.jpg"') the image gets automatically loaded into the select image button

That requires file association feature I believe.

@aaronliu0130
Copy link
Member

The user can just browse their file manager in the open with-other screen and select anya pp and it gets passed as an argument I believe.

@NayamAmarshe
Copy link
Member

Okay, I'll take a look.

@ghost
Copy link
Author

ghost commented Apr 11, 2023

Precisely. It doesn't need to get added to a context menu in Windows or anything. It just needs to support a Windows standard executable launch option that has the location of the file to load on startup when going via "Open with" in the right click menu of an image file in Windows explorer.

@aaronliu0130
Copy link
Member

I just tested it and in Windows it indeed just passes the file to be opened as the first argument. Reopening for now while NayamAmarshe hasn't stopped looking

@aaronliu0130 aaronliu0130 reopened this Apr 11, 2023
@stale
Copy link

stale bot commented Jun 10, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale We lack your response. Please reply to re-start the issue label Jun 10, 2023
@aaronliu0130 aaronliu0130 added help-wanted Extra attention is needed and removed stale We lack your response. Please reply to re-start the issue labels Jun 10, 2023
@aaronliu0130
Copy link
Member

As a vanilla JS person who only learned React today, the only thing I currently see blocking me from implementing this is the inability to affect the TSX file in index.ts, where arguments are handled. I've tried import and "jsx": "react" (with importing react in the TSX) but it still says Module '../renderer/pages/index' was resolved to 'c:/Users/aaron/Git/upscayl/renderer/pages/index.tsx', but '--jsx' is not set. I really need ideas...

@aaronliu0130 aaronliu0130 mentioned this issue Apr 8, 2024
2 tasks
@aaronliu0130
Copy link
Member

A few months ago I tried to do this. It's quite a bit harder than I expected and would require us to make the upscayling functions more modular to allow for an alternative entry point.

@NayamAmarshe NayamAmarshe changed the title Make Windows "Open With.." Dialog Load the Image [FEATURE REQUEST] Make Windows "Open With.." Dialog Load the Image May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help-wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants