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

以服务方式运行客户端时,远程屏幕黑屏 #47

Open
2 of 6 tasks
kuerme opened this issue Apr 19, 2023 · 2 comments
Open
2 of 6 tasks

以服务方式运行客户端时,远程屏幕黑屏 #47

kuerme opened this issue Apr 19, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@kuerme
Copy link

kuerme commented Apr 19, 2023

Please make sure of the following things.

  • I have read the documentation.
  • 我已阅读 文档
  • I'm sure there are no duplicate issues.
  • 我确定没有提交和他人重复的issue。
  • I'm sure it's due to Spark itself and not my operational issue or something else.
  • 我确定问题由Spark自身引起,不是我自己的操作失误或其他问题。

Version / 版本

v0.2.1

Describe the bug / 问题描述

使用winsw在windows 10 上以服务方式运行客户端时,远程屏幕显示为黑屏;而直接双击运行client.exe时是正常的;

Reproduction / 复现方式

winsw.execlient.exewinsw.xml放在同一个目录下;

以下是winsw.xml的配置文件

<service>
  <id>Spark Client</id>
  <name>Spark Client Service</name>
  <description>This service is a service created from a minimal configuration</description>
  <executable>%BASE%\client.exe</executable>
</service>

在目录下执行 winsw.exe installwinsw.exe start 后,服务启动;
通过 web端查看桌面,显示黑屏;

Logs / 日志

No response

Additional information / 附加说明

No response

@kuerme kuerme added the bug Something isn't working label Apr 19, 2023
@XZB-1248
Copy link
Owner

windows下,service会有session隔离,无法与用户桌面交互,所以无法截屏或者查看桌面。这个问题起码目前我还没法解决。

@kuerme
Copy link
Author

kuerme commented Apr 22, 2023

@XZB-1248 我现在通过Start-Process -WindowStyle hidden -FilePath .\client.exe 这个powershell的命令可以实现让client.exe在后台运行;

不过像VNC,RustDesk,向日葵这类远程控制软件都是可以作为服务运行的;想来应该是有方法; 比如向日葵安装后实际上会在用户目录下创建一个向日葵的用户目录的,猜测类似向日葵应该是自己创建了一个临时用户session;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants