aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dbus/client/dbus_client.c4
-rw-r--r--meson.build2
-rw-r--r--project.conf2
3 files changed, 6 insertions, 2 deletions
diff --git a/dbus/client/dbus_client.c b/dbus/client/dbus_client.c
index 2fc9511..31f4158 100644
--- a/dbus/client/dbus_client.c
+++ b/dbus/client/dbus_client.c
@@ -3,6 +3,7 @@
#include <sys/socket.h>
#include <sys/wait.h>
+#include <sys/prctl.h>
#include <unistd.h>
#include <poll.h>
@@ -66,6 +67,9 @@ bool gsr_dbus_client_init(gsr_dbus_client *self, const char *screencast_restore_
char socket_pair_server_str[32];
snprintf(socket_pair_server_str, sizeof(socket_pair_server_str), "%d", self->socket_pair[1]);
+ /* Needed for NixOS for example, to make sure gsr-dbus-server doesn't inherit cap_sys_nice */
+ prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL, 0, 0, 0);
+
const char *args[] = { "gsr-dbus-server", socket_pair_server_str, self->screencast_restore_token ? self->screencast_restore_token : "", NULL };
execvp(args[0], (char *const*)args);
diff --git a/meson.build b/meson.build
index d6b49dc..0a0bb60 100644
--- a/meson.build
+++ b/meson.build
@@ -1,4 +1,4 @@
-project('gpu-screen-recorder', ['c', 'cpp'], version : '5.5.2', default_options : ['warning_level=2'])
+project('gpu-screen-recorder', ['c', 'cpp'], version : '5.5.3', default_options : ['warning_level=2'])
add_project_arguments('-Wshadow', language : ['c', 'cpp'])
if get_option('buildtype') == 'debug'
diff --git a/project.conf b/project.conf
index 4bf23da..0f3f566 100644
--- a/project.conf
+++ b/project.conf
@@ -1,7 +1,7 @@
[package]
name = "gpu-screen-recorder"
type = "executable"
-version = "5.5.2"
+version = "5.5.3"
platforms = ["posix"]
[config]