summaryrefslogtreecommitdiff
path: root/tests/src/test-greeter-wrapper.c
blob: 3907fb65bbb48431a02494254c80436e4e4cce8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <stdlib.h>
#include <unistd.h>

#include "status.h"

int
main (int argc, char **argv)
{
    status_connect (NULL, NULL);

    const gchar *display = getenv ("DISPLAY");
    if (display == NULL)
        status_notify ("GREETER-WRAPPER-? START");
    else if (display[0] == ':')
        status_notify ("GREETER-WRAPPER-X-%s START", display + 1);
    else
        status_notify ("GREETER-WRAPPER-X-%s START", display);

    execv (argv[1], argv + 1);

    return EXIT_FAILURE;
}