mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 11:56:16 +01:00
26 lines
469 B
C
26 lines
469 B
C
|
#include <gio/gio.h>
|
||
|
#include <gio/gdesktopappinfo.h>
|
||
|
|
||
|
static void
|
||
|
test_launch (void)
|
||
|
{
|
||
|
GAppInfo *appinfo;
|
||
|
|
||
|
appinfo = (GAppInfo*)g_desktop_app_info_new_from_filename (SRCDIR "/appinfo-test.desktop");
|
||
|
g_assert (appinfo != NULL);
|
||
|
|
||
|
g_assert (g_app_info_launch (appinfo, NULL, NULL, NULL));
|
||
|
}
|
||
|
|
||
|
int
|
||
|
main (int argc, char *argv[])
|
||
|
{
|
||
|
g_type_init ();
|
||
|
g_test_init (&argc, &argv, NULL);
|
||
|
|
||
|
g_test_add_func ("/appinfo/launch", test_launch);
|
||
|
|
||
|
return g_test_run ();
|
||
|
}
|
||
|
|