at 23.11-beta 35 lines 1.5 kB view raw
1diff --git a/scripts/ssr-glinject b/scripts/ssr-glinject 2index 48be48d..5038d4c 100755 3--- a/scripts/ssr-glinject 4+++ b/scripts/ssr-glinject 5@@ -59,6 +59,6 @@ do 6 fi 7 done 8 9-echo "ssr-glinject: LD_PRELOAD = $LD_PRELOAD:libssr-glinject.so" 10+echo "ssr-glinject: LD_PRELOAD = $LD_PRELOAD:@out@/lib/libssr-glinject.so" 11 echo "ssr-glinject: command = $@" 12-LD_PRELOAD="$LD_PRELOAD:libssr-glinject.so" "$@" 13+LD_PRELOAD="$LD_PRELOAD:@out@/lib/libssr-glinject.so" "$@" 14diff --git a/src/AV/Input/GLInjectInput.cpp b/src/AV/Input/GLInjectInput.cpp 15index fc98f31..18f5196 100644 16--- a/src/AV/Input/GLInjectInput.cpp 17+++ b/src/AV/Input/GLInjectInput.cpp 18@@ -113,7 +113,7 @@ bool ExecuteDetached(const char* command, const char* working_directory) { 19 20 // try to execute command 21 do { 22- res = execl("/bin/sh", "/bin/sh", "-c", command, (char*) NULL); 23+ res = execl("@sh@", "@sh@", "-c", command, (char*) NULL); 24 } while(res == -1 and errno == EINTR); 25 26 // failed, send feedback 27@@ -207,7 +207,7 @@ void GLInjectInput::SetCapturing(bool capturing) { 28 bool GLInjectInput::LaunchApplication(const QString& channel, bool relax_permissions, const QString& command, const QString& working_directory) { 29 30 // prepare command 31- QString full_command = "LD_PRELOAD=\"libssr-glinject.so\" "; 32+ QString full_command = "LD_PRELOAD=\"@out@/lib/libssr-glinject.so\" "; 33 full_command += "SSR_CHANNEL=\"" + ShellEscape(channel) + "\" "; 34 if(relax_permissions) 35 full_command += "SSR_STREAM_RELAX_PERMISSIONS=1 ";