blob: 614acd6e7b20c4a64295ad57bb852f5f7a891e9f (
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 ("GUEST-WRAPPER-? START");
else if (display[0] == ':')
status_notify ("GUEST-WRAPPER-X-%s START", display + 1);
else
status_notify ("GUEST-WRAPPER-X-%s START", display);
execv (argv[1], argv + 1);
return EXIT_FAILURE;
}
|