Skip to content

[v2] How to open a file in an existing window instead of creating a new window? #10997

Answered by FabianLars
justDeek asked this question in Q&A
Discussion options

You must be logged in to vote

So i assume with opening a text file you're talking about file association (double click on the text file automatically opens it in your app)? If so then you do need something like the single-instance plugin because Windows will always spawn a new app instance to open the file, this is just how file assocations work so really no way around it.

Also, just to be sure: app instances != window instances. The single-instance plugin prevents multiple app instances (and therefore multiple tray icons too) but does not care about the amount of windows belonging to that one main instance.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@justDeek
Comment options

Answer selected by justDeek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants