Mercurial > dwindows
comparison gtk3/dw.c @ 2349:123e22827a82
GTK2/3: If the PID did not get returned set return to DW_ERROR_NONE.
Use the new code on GTK2 as well.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 04 Mar 2021 12:32:56 +0000 |
parents | e3d2058ea96a |
children | fad0821cb953 |
comparison
equal
deleted
inserted
replaced
2348:e3d2058ea96a | 2349:123e22827a82 |
---|---|
11558 | 11558 |
11559 #if GLIB_CHECK_VERSION(2,36,0) | 11559 #if GLIB_CHECK_VERSION(2,36,0) |
11560 g_signal_connect(G_OBJECT(context), "launched", G_CALLBACK(_dw_exec_launched), (gpointer)&retval); | 11560 g_signal_connect(G_OBJECT(context), "launched", G_CALLBACK(_dw_exec_launched), (gpointer)&retval); |
11561 #endif | 11561 #endif |
11562 | 11562 |
11563 g_app_info_launch(appinfo, NULL, context, NULL); | 11563 if(g_app_info_launch(appinfo, NULL, context, NULL) && retval == DW_ERROR_UNKNOWN) |
11564 retval = DW_ERROR_NONE; | |
11564 | 11565 |
11565 g_object_unref(appinfo); | 11566 g_object_unref(appinfo); |
11566 g_object_unref(context); | 11567 g_object_unref(context); |
11567 } | 11568 } |
11568 free(commandline); | 11569 free(commandline); |