diff options
author | rbuj <[email protected]> | 2021-10-26 13:46:49 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-02-19 01:30:54 +0100 |
commit | 951fda145f4ac52c4abea497b7a9adfd869da676 (patch) | |
tree | 0d79e9857d6907574760936b590a00bb4fbaf1cf /src | |
parent | 7667d54262f41486eba1d8a6608f48fbfbb0855e (diff) | |
download | mate-screensaver-951fda145f4ac52c4abea497b7a9adfd869da676.tar.bz2 mate-screensaver-951fda145f4ac52c4abea497b7a9adfd869da676.tar.xz |
Don't build the path to mate-screensaver-dialog
Diffstat (limited to 'src')
-rw-r--r-- | src/gs-window-x11.c | 6 |
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)) { |