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

单机多用户时能否只运行1个实例 #42

Open
bitching opened this issue Jan 28, 2019 · 5 comments
Open

单机多用户时能否只运行1个实例 #42

bitching opened this issue Jan 28, 2019 · 5 comments

Comments

@bitching
Copy link

能否做到增加可选项,禁止多个用户同时登录的机器上启动多个实例?

@rexdf
Copy link
Owner

rexdf commented Jan 28, 2019

好奇怪的需求。可以倒是可以,只是多个同时运行是费了一番周折的,只支持运行一个倒是好说。

我猜测下,你其实想问的是不是

是因为开机启动多用户都启动了么?

@rexdf
Copy link
Owner

rexdf commented Jan 28, 2019

刚刚看了下代码,目前代码的开机启动,是放到用户键HKEY_CURRENT_USER下面的。

@bitching
Copy link
Author

bitching commented Mar 6, 2019

好奇怪的需求。可以倒是可以,只是多个同时运行是费了一番周折的,只支持运行一个倒是好说。

我猜测下,你其实想问的是不是

是因为开机启动多用户都启动了么?

是的啊,有一台公用服务器,分配了多个用户远程桌面用,用任务计划很容易就被别人搞坏了,用这个程序做supervisor正好,但是因为有的任务启动多个实例会乱套,所以有这种需求。抱歉回复得晚,过了个年差点忘了。。

@rexdf
Copy link
Owner

rexdf commented Mar 7, 2019

好了,大体上明白场景了。晚些时间我测试下,这个应该容易解决。虽然也有其他方法解决就是了,比如手动设置开机启动,而不用CommandTrayHost自己的开机启动。

@bitching
Copy link
Author

bitching commented Mar 7, 2019

目前就是这么处理的,就是不防手贱😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants