diff --git a/src/platform/common.h b/src/platform/common.h index 34890619..2073d593 100644 --- a/src/platform/common.h +++ b/src/platform/common.h @@ -14,8 +14,10 @@ // lib includes #include #ifndef _WIN32 - #include - #include + #include + #include + #include + #include #endif // local includes diff --git a/src/platform/linux/misc.cpp b/src/platform/linux/misc.cpp index 55033bde..23cca8db 100644 --- a/src/platform/linux/misc.cpp +++ b/src/platform/linux/misc.cpp @@ -22,7 +22,14 @@ // lib includes #include #include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -45,7 +52,7 @@ using namespace std::literals; namespace fs = std::filesystem; -namespace bp = boost::process; +namespace bp = boost::process::v1; window_system_e window_system; diff --git a/src/process.cpp b/src/process.cpp index 41056926..54dc9d81 100644 --- a/src/process.cpp +++ b/src/process.cpp @@ -4,6 +4,9 @@ */ #define BOOST_BIND_GLOBAL_PLACEHOLDERS +#ifndef BOOST_PROCESS_VERSION + #define BOOST_PROCESS_VERSION 1 +#endif // standard includes #include #include diff --git a/src/process.h b/src/process.h index e406dd93..46af8be3 100644 --- a/src/process.h +++ b/src/process.h @@ -134,7 +134,7 @@ namespace proc { std::string get_app_image(int app_id); std::string get_last_run_app_name(); std::string get_running_app_uuid(); - boost::process::environment get_env(); + boost::process::v1::environment get_env(); void terminate(bool immediate = false, bool needs_refresh = true); private: @@ -162,7 +162,7 @@ namespace proc { }; boost::filesystem::path - find_working_directory(const std::string &cmd, boost::process::environment &env); + find_working_directory(const std::string &cmd, boost::process::v1::environment &env); /** * @brief Calculate a stable id based on name and image data @@ -199,4 +199,4 @@ namespace proc { #ifdef BOOST_PROCESS_VERSION #undef BOOST_PROCESS_VERSION -#endif \ No newline at end of file +#endif diff --git a/src/video.cpp b/src/video.cpp index 51e4c0e8..16b64f25 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -56,12 +56,13 @@ namespace video { // } if (devices.empty()) { + #ifdef _WIN32 // We'll create a temporary virtual display for probing anyways. if (proc::vDisplayDriverStatus == VDISPLAY::DRIVER_STATUS::OK) { return false; - } else { - return true; } + #endif + return true; } // Since Windows 11 24H2, it is possible that there will be no active devices present