summaryrefslogtreecommitdiff
path: root/gui/greeter
diff options
context:
space:
mode:
authorGeorge Lebl <jirka@5z.com>2003-09-22 22:17:25 +0000
committerGeorge Lebl <jirka@src.gnome.org>2003-09-22 22:17:25 +0000
commit54f3f813a7e97b1280c882390fc294556abe1587 (patch)
tree0125785bad16f7534311667b1b66dafa01b948df /gui/greeter
parentfc62f724c83c8cedbaccdb8d5435fedfa08fd41a (diff)
downloadgdm-54f3f813a7e97b1280c882390fc294556abe1587.tar.gz
in the old location where we're not replacing the files, move them rather
Mon Sep 22 15:16:05 2003 George Lebl <jirka@5z.com> * config/Makefile.am: in the old location where we're not replacing the files, move them rather then just copy them to avoid duplicate copies. Also just append the .orig extension, we handle that now * gui/gdmlogin.c, gui/greeter/greeter_session.c: Fix the extension handling checking and default.desktop.rpmorig and such won't be treated as .desktop files anymore
Diffstat (limited to 'gui/greeter')
-rw-r--r--gui/greeter/greeter_session.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/greeter/greeter_session.c b/gui/greeter/greeter_session.c
index f0bf77a4..7dd7565e 100644
--- a/gui/greeter/greeter_session.c
+++ b/gui/greeter/greeter_session.c
@@ -306,9 +306,12 @@ greeter_session_init (void)
char *comment;
char *label;
char *tryexec;
+ char *ext;
/* ignore everything bug the .desktop files */
- if (strstr (dent->d_name, ".desktop") == NULL) {
+ ext = strstr (dent->d_name, ".desktop");
+ if (ext == NULL ||
+ strcmp (ext, ".desktop") != 0) {
dent = readdir (sessdir);
continue;
}
@@ -319,7 +322,6 @@ greeter_session_init (void)
continue;
}
-
s = g_strconcat (dir, "/", dent->d_name, NULL);
cfg = ve_config_new (s);
g_free (s);