summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-10-26 13:46:49 +0200
committerraveit65 <[email protected]>2022-02-19 01:30:54 +0100
commit951fda145f4ac52c4abea497b7a9adfd869da676 (patch)
tree0d79e9857d6907574760936b590a00bb4fbaf1cf
parent7667d54262f41486eba1d8a6608f48fbfbb0855e (diff)
downloadmate-screensaver-951fda145f4ac52c4abea497b7a9adfd869da676.tar.bz2
mate-screensaver-951fda145f4ac52c4abea497b7a9adfd869da676.tar.xz
Don't build the path to mate-screensaver-dialog
-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))
{