]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - tests/src/test-greeter-wrapper.c
Allow guest sessions more access to the upstart session socket
[sojka/lightdm.git] / tests / src / test-greeter-wrapper.c
1 #include <stdlib.h>
2 #include <unistd.h>
3
4 #include "status.h"
5
6 int
7 main (int argc, char **argv)
8 {
9     gchar *display;
10
11     status_connect (NULL, NULL);
12
13     display = getenv ("DISPLAY");
14     if (display == NULL)
15         status_notify ("GREETER-WRAPPER-? START");
16     else if (display[0] == ':')
17         status_notify ("GREETER-WRAPPER-X-%s START", display + 1);
18     else
19         status_notify ("GREETER-WRAPPER-X-%s START", display);
20
21     execv (argv[1], argv + 1);
22
23     return EXIT_FAILURE;
24 }