diff --git a/src/lightdm-gtk-greeter.c b/src/lightdm-gtk-greeter.c index cc5f9e1..d615dc1 100644 --- a/src/lightdm-gtk-greeter.c +++ b/src/lightdm-gtk-greeter.c @@ -1716,7 +1716,7 @@ main (int argc, char **argv) gtk_container_add (GTK_CONTAINER (menuitem), image); gtk_widget_show (GTK_WIDGET (menuitem)); - items = lightdm_get_sessions (); + items = lightdm_get_sessions (greeter); GSList *sessions = NULL; for (item = items; item; item = item->next) {