mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-11-13 04:05:43 +08:00
[fix] enable web file browsing across control transports, refs #135
This commit is contained in:
1 parent
ec2c5485a2
commit
b2817d0adc
4 files changed
+15
-11
No files matched your search
@@ -685,12 +685,12 @@ std::string GuiRuntime::BuildHostInformation(bool advertise_trust,
|
||||
LOG_INFO("Local display [{}:{}]", i + 1, action.i.display_list[i]);
|
||||
auto message = action.to_json();
|
||||
FreeRemoteAction(action);
|
||||
if (advertise_trust) {
|
||||
auto information = nlohmann::json::parse(message);
|
||||
information["device_trust_version"] = 1;
|
||||
message = information.dump();
|
||||
}
|
||||
return message;
|
||||
auto information = nlohmann::json::parse(message);
|
||||
// Older desktop builds advertise native directory RPC, but their Web
|
||||
// control router cannot carry it. Negotiate the Web route independently.
|
||||
information["host_info"]["supports_web_file_browser"] = UserSessionFeaturesAvailable();
|
||||
if (advertise_trust) information["device_trust_version"] = 1;
|
||||
return information.dump();
|
||||
}
|
||||
|
||||
void GuiRuntime::AnnounceHostCapabilities(const std::string& id) {
|
||||
|
||||
Reference in new issue
Block a user