-
Notifications
You must be signed in to change notification settings - Fork 267
Multiple Instances (especially for multiple desktops) #1303
-
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!
Beta Was this translation helpful? Give feedback.
All reactions
Reasons for SourceGit
to switch to singleton running mode:
-
SourceGit
has added theWorkspace
feature. Users can organize different repositories into differentWorkspace
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 thatSourceGit
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
-
Reasons for SourceGit
to switch to singleton running mode:
SourceGit
has added theWorkspace
feature. Users can organize different repositories into differentWorkspace
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 thatSourceGit
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.
Beta Was this translation helpful? Give feedback.
All reactions
-
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!
Beta Was this translation helpful? Give feedback.
All reactions
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
-
I don't think multiple instances is the feature wanted, multiple windows is the way.
Beta Was this translation helpful? Give feedback.
All reactions
-
❤️ 1
-
Exactly! If multiple windows could be achieved, that would be exactly what's wanted.
Beta Was this translation helpful? Give feedback.