Add instructions for Steam on start
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
static std::filesystem::path manifest_path()
|
std::filesystem::path active_runtime::manifest_path()
|
||||||
{
|
{
|
||||||
const std::filesystem::path install_location = "share/openxr/1/openxr_wivrn.json";
|
const std::filesystem::path install_location = "share/openxr/1/openxr_wivrn.json";
|
||||||
// Check if in a flatpak
|
// Check if in a flatpak
|
||||||
|
|||||||
@@ -32,4 +32,6 @@ public:
|
|||||||
active_runtime(const active_runtime &) = delete;
|
active_runtime(const active_runtime &) = delete;
|
||||||
active_runtime & operator=(const active_runtime &) = delete;
|
active_runtime & operator=(const active_runtime &) = delete;
|
||||||
~active_runtime();
|
~active_runtime();
|
||||||
|
|
||||||
|
static std::filesystem::path manifest_path();
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -126,6 +126,13 @@ void waitpid_verbose(pid_t pid, const std::string & name)
|
|||||||
int inner_main(int argc, char * argv[], bool use_systemd)
|
int inner_main(int argc, char * argv[], bool use_systemd)
|
||||||
{
|
{
|
||||||
std::cerr << "WiVRn " << xrt::drivers::wivrn::git_version << " starting" << std::endl;
|
std::cerr << "WiVRn " << xrt::drivers::wivrn::git_version << " starting" << std::endl;
|
||||||
|
|
||||||
|
std::string command = "PRESSURE_VESSEL_FILESYSTEMS_RW=$XDG_RUNTIME_DIR/" XRT_IPC_MSG_SOCK_FILENAME " %command%";
|
||||||
|
if (auto p = active_runtime::manifest_path().string(); p.starts_with("/usr"))
|
||||||
|
command = "XR_RUNTIME_JSON=/run/host" + p + " " + command;
|
||||||
|
|
||||||
|
std::cerr << "For Steam games, set command to " << command << std::endl;
|
||||||
|
|
||||||
#ifdef WIVRN_USE_SYSTEMD
|
#ifdef WIVRN_USE_SYSTEMD
|
||||||
create_listen_socket();
|
create_listen_socket();
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user