Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
proc::ctx_t Struct Reference

#include <src/process.h>

Public Attributes

std::vector< cmd_t > prep_cmds
std::vector< cmd_t > state_cmds
std::vector< std::string > detached
std::string idx
std::string uuid
std::string name
std::string cmd
std::string working_dir
std::string output
std::string image_path
std::string id
std::string gamepad
bool elevated
bool auto_detach
bool wait_all
bool virtual_display
bool force_virtual_display {false}
bool force_scale_factor {false}
bool virtual_display_primary
bool use_app_identity
bool per_client_app_identity
bool allow_client_commands
bool terminate_on_pause
bool unlock_host_session
bool stop_detached {true}
 Stop the app's detached commands, and all they started, when the app ends.
bool limit_fps {false}
 Cap the application's frame rate at the stream's (DXVK, VKD3D-Proton, MangoHud).
std::string isolation_method
bool host_session {false}
std::chrono::seconds first_frame_timeout {0}
std::string virtual_display_layout
std::string gamescope_steam_mode
std::string gamescope_args
std::string isolate_devices
std::string isolate_sound
std::string stop_desktop_steam
int scale_factor
std::chrono::seconds exit_timeout

Detailed Description

pre_cmds – guaranteed to be executed unless any of the commands fail. detached – commands detached from Sunshine cmd – Runs indefinitely until: No session is running and a different set of commands it to be executed Command exits working_dir – the process working directory. This is required for some games to run properly. cmd_output – empty – The output of the commands are appended to the output of sunshine "null" – The output of the commands are discarded filename – The output of the commands are appended to filename

Definition at line 76 of file process.h.

Member Data Documentation

◆ allow_client_commands

bool proc::ctx_t::allow_client_commands

Definition at line 116 of file process.h.

◆ auto_detach

bool proc::ctx_t::auto_detach

Definition at line 104 of file process.h.

◆ cmd

std::string proc::ctx_t::cmd

Definition at line 97 of file process.h.

◆ detached

std::vector<std::string> proc::ctx_t::detached

Some applications, such as Steam, either exit quickly, or keep running indefinitely.

Apps that launch normal child processes and terminate will be handled by the process grouping logic (wait_all). However, apps that launch child processes indirectly or into another process group (such as UWP apps) can only be handled by the auto-detach heuristic which catches processes that exit 0 very quickly, but we won't have proper process tracking for those.

For cases where users just want to kick off a background process and never manage the lifetime of that process, they can use detached commands for that.

Definition at line 92 of file process.h.

◆ elevated

bool proc::ctx_t::elevated

Definition at line 103 of file process.h.

◆ exit_timeout

std::chrono::seconds proc::ctx_t::exit_timeout

Definition at line 151 of file process.h.

◆ first_frame_timeout

std::chrono::seconds proc::ctx_t::first_frame_timeout {0}

Definition at line 130 of file process.h.

◆ force_scale_factor

bool proc::ctx_t::force_scale_factor {false}

scale_factor applies to every client, overriding the client's own resolution scale. Unset, it is the default for clients that send none.

Definition at line 112 of file process.h.

◆ force_virtual_display

bool proc::ctx_t::force_virtual_display {false}

virtual_display applies to every client, overriding the client's own choice. Unset, it is the default for clients that make none.

Definition at line 109 of file process.h.

◆ gamepad

std::string proc::ctx_t::gamepad

Definition at line 102 of file process.h.

◆ gamescope_args

std::string proc::ctx_t::gamescope_args

Definition at line 141 of file process.h.

◆ gamescope_steam_mode

std::string proc::ctx_t::gamescope_steam_mode

Definition at line 138 of file process.h.

◆ host_session

bool proc::ctx_t::host_session {false}

Definition at line 127 of file process.h.

◆ id

std::string proc::ctx_t::id

Definition at line 101 of file process.h.

◆ idx

std::string proc::ctx_t::idx

Definition at line 94 of file process.h.

◆ image_path

std::string proc::ctx_t::image_path

Definition at line 100 of file process.h.

◆ isolate_devices

std::string proc::ctx_t::isolate_devices

Definition at line 145 of file process.h.

◆ isolate_sound

std::string proc::ctx_t::isolate_sound

Definition at line 146 of file process.h.

◆ isolation_method

std::string proc::ctx_t::isolation_method

Definition at line 125 of file process.h.

◆ limit_fps

bool proc::ctx_t::limit_fps {false}

Cap the application's frame rate at the stream's (DXVK, VKD3D-Proton, MangoHud).

Definition at line 122 of file process.h.

◆ name

std::string proc::ctx_t::name

Definition at line 96 of file process.h.

◆ output

std::string proc::ctx_t::output

Definition at line 99 of file process.h.

◆ per_client_app_identity

bool proc::ctx_t::per_client_app_identity

Definition at line 115 of file process.h.

◆ prep_cmds

std::vector<cmd_t> proc::ctx_t::prep_cmds

Definition at line 77 of file process.h.

◆ scale_factor

int proc::ctx_t::scale_factor

Definition at line 150 of file process.h.

◆ state_cmds

std::vector<cmd_t> proc::ctx_t::state_cmds

Definition at line 78 of file process.h.

◆ stop_desktop_steam

std::string proc::ctx_t::stop_desktop_steam

Definition at line 149 of file process.h.

◆ stop_detached

bool proc::ctx_t::stop_detached {true}

Stop the app's detached commands, and all they started, when the app ends.

Definition at line 120 of file process.h.

◆ terminate_on_pause

bool proc::ctx_t::terminate_on_pause

Definition at line 117 of file process.h.

◆ unlock_host_session

bool proc::ctx_t::unlock_host_session

Definition at line 118 of file process.h.

◆ use_app_identity

bool proc::ctx_t::use_app_identity

Definition at line 114 of file process.h.

◆ uuid

std::string proc::ctx_t::uuid

Definition at line 95 of file process.h.

◆ virtual_display

bool proc::ctx_t::virtual_display

Definition at line 106 of file process.h.

◆ virtual_display_layout

std::string proc::ctx_t::virtual_display_layout

Definition at line 134 of file process.h.

◆ virtual_display_primary

bool proc::ctx_t::virtual_display_primary

Definition at line 113 of file process.h.

◆ wait_all

bool proc::ctx_t::wait_all

Definition at line 105 of file process.h.

◆ working_dir

std::string proc::ctx_t::working_dir

Definition at line 98 of file process.h.


The documentation for this struct was generated from the following file: