From 2daa8ba4aae04b6a98d95ce323eaea65008b06f5 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 6 Jul 2025 23:05:43 +0200 Subject: gsr running shouldn't be an error condition --- src/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index dcd352b..192e84e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4,7 +4,6 @@ #include "../include/Process.hpp" #include "../include/Rpc.hpp" -#include #include #include #include @@ -239,10 +238,9 @@ int main(int argc, char **argv) { return 1; } - if(gsr::pidof("gpu-screen-recorder", getpid()) != -1) { + if(gsr::pidof("gpu-screen-recorder", -1) != -1) { const char *args[] = { "gsr-notify", "--text", "GPU Screen Recorder is already running in another process.\nPlease close it before using GPU Screen Recorder UI.", "--timeout", "5.0", "--icon-color", "ff0000", "--bg-color", "ff0000", nullptr }; gsr::exec_program_daemonized(args); - return 1; } if(mgl_init(MGL_WINDOW_SYSTEM_X11) != 0) { -- cgit v1.2.3-70-g09d2