[feat] add Windows pre-login remote control and fix autostart

This commit is contained in:
dijunkun
2026-10-04 12:49:26 +08:00
parent b8f704abb9
commit 7f7b91851e
33 changed files with 1902 additions and 70 deletions
@@ -115,7 +115,7 @@ void SessionDeviceManager::RecordCaptureCadence(
}
void SessionDeviceManager::Initialize() {
InitializeAudioOutput();
if (!owner_.unattended_host_) InitializeAudioOutput();
screen_capturer_factory_ = new ScreenCapturerFactory();
device_controller_factory_ = new DeviceControllerFactory();
keyboard_capturer_ =
@@ -329,6 +329,7 @@ void SessionDeviceManager::ReleaseRemoteMouseButtons() {
#endif
void SessionDeviceManager::StartSpeakerCapturer() {
if (owner_.unattended_host_) return;
speaker_capture_.SetEnabled(true);
}
@@ -229,6 +229,13 @@ bool SettingsManager::ReadV2Locked() {
return true;
}
std::string SettingsManager::ActiveIdentity() const {
std::lock_guard<std::mutex> lock(cache_mutex_);
return owner_.config_center_->IsSelfHosted()
? cache_v2_.self_hosted_id
: cache_v2_.client_id_with_password;
}
int SettingsManager::Load() {
std::unique_lock<std::mutex> lock(cache_mutex_);
@@ -20,6 +20,7 @@ public:
int Save();
int Load();
std::string ActiveIdentity() const;
int LoadRecentConnectionAliases();
int SaveRecentConnectionAliases() const;