blob: 99351c9fcf058b214f90040b36d7a2463c6b2b40 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* lightdm-mini-greeter - A minimal GTK LightDM Greeter */
#include <sys/mman.h>
#include <gtk/gtk.h>
#include "app.h"
#include "utils.h"
int main(int argc, char **argv)
{
mlockall(MCL_CURRENT | MCL_FUTURE); // Keep data out of any swap devices
App *app = initialize_app(argc, argv);
connect_to_lightdm_daemon(app->greeter);
begin_authentication_as_default_user(app);
make_session_focus_ring(app);
for (int m = 0; m < APP_MONITOR_COUNT(app); m++) {
gtk_widget_show_all(GTK_WIDGET(APP_BACKGROUND_WINDOWS(app)[m]));
}
gtk_widget_show_all(GTK_WIDGET(APP_MAIN_WINDOW(app)));
gtk_window_present(APP_MAIN_WINDOW(app));
gtk_main();
destroy_app(app);
}
|