aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh2
-rw-r--r--main.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 2f8c54d..af8729e 100755
--- a/build.sh
+++ b/build.sh
@@ -6,4 +6,4 @@ cd "$script_dir"
cd depends/libcap/libcap
make SHARED=no GOLANG=no PTHREADS=no
cd ../../../
-gcc main.c -o kms-server-proxy-1 -fstack-protector-all -O3 -s -flto -Wall -Wextra -Werror -DNDEBUG -static -static-libgcc -I./depends/libcap/libcap/include ./depends/libcap/libcap/libcap.a
+gcc main.c -o kms-server-proxy -fstack-protector-all -O3 -s -flto -Wall -Wextra -Werror -DNDEBUG -static -static-libgcc -I./depends/libcap/libcap/include ./depends/libcap/libcap/libcap.a
diff --git a/main.c b/main.c
index ba046f5..3a40e08 100644
--- a/main.c
+++ b/main.c
@@ -123,6 +123,7 @@ int main(int argc, char **argv) {
return 1;
char kms_server_proxy_local_filepath[PATH_MAX];
+ /* Update kms-server-proxy-N to kms-server-proxy-N+1 on update (update that needs to run before this program launches itself) */
snprintf(kms_server_proxy_local_filepath, sizeof(kms_server_proxy_local_filepath), "%s/.local/share/gpu-screen-recorder/kms-server-proxy-1", user_homepath);
if(file_has_sys_admin_capability(gsr_kms_server_filepath)) {