|
Hermes 0.7.0
Linux game streaming host
|
#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 |
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
| 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.
| bool proc::ctx_t::force_scale_factor {false} |
| bool proc::ctx_t::force_virtual_display {false} |
| bool proc::ctx_t::limit_fps {false} |
| bool proc::ctx_t::stop_detached {true} |