xenolightning / AudioSwitcher_v1

Version 1 of Audio Switcher
Microsoft Public License
894 stars 90 forks source link

Only allow for one client instance #2136

Closed RickDB closed 7 years ago

RickDB commented 7 years ago

This checks if AudioSwitcher client is already running and closes it if so, kept the dialog pretty basic but can of course expand on that :)

xenolightning commented 7 years ago

This was done initially, but if multiple people use a computer then it requires multiple instances of the application to be open.

There was an issue a long time ago to remove the single client instance, so it won't be included back in at this stage.

RickDB commented 7 years ago

Ah I see, so this was done for RDP sessions and/or multiple logins :) What could be possible is to check if one or more is running as the current user if you want, that way it still allows multiple instances if the computer has multiple active accounts.

xenolightning commented 7 years ago

Yeah RDP was one use case. There are also multi use PC's, where user's will switch in and out without "logging out" as such, and the application stays open.

Yeah there's a bit that could be done to make it single instance, but it there any huge downsides to running to instances of the application?

The settings get a little dodgy, but for the most part it's ok.

RickDB commented 7 years ago

Yeah except for the settings part it works fine, I had it overwrite it from another instance which got launched by mistake recently which isn't a big deal and less common tbh :)