From 7667d54262f41486eba1d8a6608f48fbfbb0855e Mon Sep 17 00:00:00 2001 From: rbuj Date: Tue, 26 Oct 2021 13:31:46 +0200 Subject: Don't build the path to mate-screensaver-gl-helper --- src/gs-window-x11.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/gs-window-x11.c') diff --git a/src/gs-window-x11.c b/src/gs-window-x11.c index 218a37e..eba8721 100644 --- a/src/gs-window-x11.c +++ b/src/gs-window-x11.c @@ -506,7 +506,6 @@ static GdkVisual * get_best_visual_for_display (GdkDisplay *display) { GdkScreen *screen; - char *command; char *std_output; int exit_status; GError *error; @@ -518,19 +517,18 @@ get_best_visual_for_display (GdkDisplay *display) visual = NULL; screen = gdk_display_get_default_screen (display); - command = g_build_filename (LIBEXECDIR, "mate-screensaver-gl-helper", NULL); - error = NULL; std_output = NULL; res = spawn_command_line_on_display_sync (display, - command, + MATE_SCREENSAVER_GL_HELPER_PATH, &std_output, NULL, &exit_status, &error); if (! res) { - gs_debug ("Could not run command '%s': %s", command, error->message); + gs_debug ("Could not run command '%s': %s", + MATE_SCREENSAVER_GL_HELPER_PATH, error->message); g_error_free (error); goto out; } @@ -551,7 +549,6 @@ get_best_visual_for_display (GdkDisplay *display) } out: g_free (std_output); - g_free (command); return g_object_ref (visual); } -- cgit v1.2.1