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

#include "status.h"

int
main (int argc, char **argv)
{
    gchar *display;

    status_connect (NULL, NULL);

    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;
}