diff options
author | Ray Strode <rstrode@redhat.com> | 2009-10-27 10:40:55 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2009-11-05 15:40:43 -0500 |
commit | 0596fa2d91760bca520b549dbcfc35bdc98ee098 (patch) | |
tree | ddd680dc2fdbe6f259823a3f2e0afa9363eaf2ed /utils | |
parent | 650175fc87de19bb150e38e3adb0f5a0a373369c (diff) | |
download | gdm-0596fa2d91760bca520b549dbcfc35bdc98ee098.tar.gz |
Make screenshot dir a configure argument
This provides a little more flexibility to distributors,
but more importantly makes it less hard coded in gdm-screenshot.c
Diffstat (limited to 'utils')
-rw-r--r-- | utils/Makefile.am | 1 | ||||
-rw-r--r-- | utils/gdm-screenshot.c | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/utils/Makefile.am b/utils/Makefile.am index 0b6ea049..f1ff3313 100644 --- a/utils/Makefile.am +++ b/utils/Makefile.am @@ -4,6 +4,7 @@ AM_CPPFLAGS = \ -I. \ -I.. \ -DLOCALSTATEDIR=\""$(localstatedir)"\" \ + -DGDM_SCREENSHOT_DIR=\""$(GDM_SCREENSHOT_DIR)"\"\ -DGNOMELOCALEDIR=\""$(datadir)/locale"\" \ $(UTILS_CFLAGS) \ $(CANBERRA_GTK_CFLAGS) \ diff --git a/utils/gdm-screenshot.c b/utils/gdm-screenshot.c index f66de460..12102f2a 100644 --- a/utils/gdm-screenshot.c +++ b/utils/gdm-screenshot.c @@ -163,11 +163,8 @@ screenshot_save (GdkPixbuf *pixbuf) char *filename; gboolean res; GError *error; - const char *save_dir; - save_dir = LOCALSTATEDIR "/run/gdm"; - - filename = g_build_filename (save_dir, + filename = g_build_filename (GDM_SCREENSHOT_DIR, "GDM-Screenshot.png", NULL); |