summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-26 13:46:49 +0200
committerrbuj <[email protected]>2021-10-26 14:32:58 +0200
commit43d12a6daa622104e5078486c4b0ee1e2f2e5646 (patch)
tree017c0f3b0b87a1a8b60fd1a574a7e04808f11940
parentedabf3cd489f83ab5839bea9950e0cbb069c8942 (diff)
downloadmate-screensaver-MATE_SCREENSAVER_GL_HELPER_PATH.tar.bz2
mate-screensaver-MATE_SCREENSAVER_GL_HELPER_PATH.tar.xz
Don't build the path to mate-screensaver-dialogMATE_SCREENSAVER_GL_HELPER_PATH
-rw-r--r--src/gs-window-x11.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gs-window-x11.c b/src/gs-window-x11.c
index eba8721..6274a1b 100644
--- a/src/gs-window-x11.c
+++ b/src/gs-window-x11.c
@@ -56,6 +56,7 @@ enum
#define MAX_QUEUED_EVENTS 16
#define INFO_BAR_SECONDS 30
+#define MATE_SCREENSAVER_DIALOG_PATH LIBEXECDIR "/mate-screensaver-dialog"
struct GSWindowPrivate
{
@@ -1694,14 +1695,11 @@ static void
popup_dialog (GSWindow *window)
{
gboolean result;
- char *tmp;
GString *command;
gs_debug ("Popping up dialog");
- tmp = g_build_filename (LIBEXECDIR, "mate-screensaver-dialog", NULL);
- command = g_string_new (tmp);
- g_free (tmp);
+ command = g_string_new (MATE_SCREENSAVER_DIALOG_PATH);
if (is_logout_enabled (window))
{