Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Multiple Instances (especially for multiple desktops) #1303

Answered by love-linger
gyststarblayze asked this question in Q&A
Discussion options

I use multiple desktops (on Windows) to help organize my coding projects, and previously it was possible to open a new instance of SourceGit on each desktop. This was very convenient, because it allowed me to keep all my relevant repo and git activities right there in the right desktop.

After a recent update, however, SourceGit is consolidated into a single instance. Any attempt to open a new instance will simply redirect me to whichever desktop already has SourceGit instance running.

Was this change intentional, and is there any way to restore the previous behavior? Thanks!

You must be logged in to vote

Reasons for SourceGit to switch to singleton running mode:

  • SourceGit has added the Workspace feature. Users can organize different repositories into different Workspace and quickly switch between them.
  • Some users want to open a new repository from the command line in a new tab instead of new instance if there's a SourceGit instance running. This request demands that SourceGit runs as a singleton to facilitate judging whether to create a new instance or send a message to the already running process. If it still runs in multiple instances, it will be more complex to select the correct instance.

Replies: 1 comment 4 replies

Comment options

Reasons for SourceGit to switch to singleton running mode:

  • SourceGit has added the Workspace feature. Users can organize different repositories into different Workspace and quickly switch between them.
  • Some users want to open a new repository from the command line in a new tab instead of new instance if there's a SourceGit instance running. This request demands that SourceGit runs as a singleton to facilitate judging whether to create a new instance or send a message to the already running process. If it still runs in multiple instances, it will be more complex to select the correct instance.
You must be logged in to vote
4 replies
Comment options

Thanks for the quick response. I understand the reason for the change, but I still miss the old approach, which was more convenient for my use case. If it were ever to become possible to optionally disable the singleton running mode (via a config file or command line argument, perhaps) that would be ideal.

Either way, thanks for the response. The app is fantastic!

Comment options

Another important reason is that I forgot to say. In the case of multiple instances before, the user's configuration file preferences.json may not be able to be saved correctly. For example: there are two instances, one adds a new repository a, and the other adds repository b. Because the configuration changes, it will be serialized as json immediately by the first instance and then saved into disk, and latter it will overwrite by another instance.

Therefore, for these reasons, there is no plan to support multiple instances now. I'm very sorry.

Comment options

I don't think multiple instances is the feature wanted, multiple windows is the way.

Comment options

Exactly! If multiple windows could be achieved, that would be exactly what's wanted.

Answer selected by gyststarblayze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /