aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-02-16 21:30:21 +0100
committerdec05eba <dec05eba@protonmail.com>2024-02-16 21:30:24 +0100
commitdece0984026405bd83a0d948c66e0cb50d4b8a90 (patch)
tree9598db276e81c635022321d506b5b28bde101575
parentd31dc61e1a1358fa6b0960d699f2a55e39854096 (diff)
Do not change kms-server-proxy name, we dont want to reinstall kms-server-proxy
This is fine since the change we have made (creating ~/.local/bin) is executed in the flatpaks kms-server-proxy, not the one in ~/.local/bin
-rw-r--r--README.md3
-rw-r--r--main.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/README.md b/README.md
index 28f8c51..0a6b410 100644
--- a/README.md
+++ b/README.md
@@ -5,4 +5,7 @@ after copying self to ~/.local/bin and launches gsr-kms-server (in flatpak locat
When this program is run after that it will check if its run from ~/.local/bin or launch that and it will see that the program has CAP_SYS_ADMIN capability
and will launch gsr-kms-server (in flatpak location). This program also sets CAP_SYS_ADMIN on gsr-kms-server in the flatpak app directory.
+The reason all of this is needed is because `setcap cap_sys_admin+ep gsr-kms-server` can't be done in the flatpak because of sandboxing so this is only done when you install GPU Screen Recorder
+from source/aur to workaround that limitation.
+
The depends directory contains libcap from the libcap project, available here: https://mirrors.edge.kernel.org/pub/linux/libs/security/linux-privs/libcap2/. The version used is libcap-2.69. \ No newline at end of file
diff --git a/main.c b/main.c
index 35ff830..13ece70 100644
--- a/main.c
+++ b/main.c
@@ -120,7 +120,7 @@ int main(int argc, char **argv) {
return 1;
char kms_server_proxy_local_filepath[PATH_MAX];
- snprintf(kms_server_proxy_local_filepath, sizeof(kms_server_proxy_local_filepath), "%s/.local/bin/kms-server-proxy-1", user_homepath);
+ snprintf(kms_server_proxy_local_filepath, sizeof(kms_server_proxy_local_filepath), "%s/.local/bin/kms-server-proxy", user_homepath);
if(file_has_sys_admin_capability(gsr_kms_server_filepath)) {
const char *args[] = { gsr_kms_server_filepath, initial_socket_path, card_path, NULL };