mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
21 lines
420 B
C
21 lines
420 B
C
|
#include <stdlib.h>
|
||
|
#include <gio/gio.h>
|
||
|
|
||
|
int
|
||
|
main (int argc, char *argv[])
|
||
|
{
|
||
|
const gchar *envvar;
|
||
|
gint pid_from_env;
|
||
|
|
||
|
envvar = g_getenv ("GIO_LAUNCHED_DESKTOP_FILE_PID");
|
||
|
g_assert (envvar != NULL);
|
||
|
pid_from_env = atoi (envvar);
|
||
|
g_assert_cmpint (pid_from_env, ==, getpid ());
|
||
|
|
||
|
envvar = g_getenv ("GIO_LAUNCHED_DESKTOP_FILE");
|
||
|
g_assert_cmpstr (envvar, ==, SRCDIR "/appinfo-test.desktop");
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|