Mercurial > dwindows
diff 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 |
line wrap: on
line diff
--- a/gtk3/dw.c Thu Mar 04 11:53:09 2021 +0000 +++ b/gtk3/dw.c Thu Mar 04 12:32:56 2021 +0000 @@ -11560,7 +11560,8 @@ g_signal_connect(G_OBJECT(context), "launched", G_CALLBACK(_dw_exec_launched), (gpointer)&retval); #endif - g_app_info_launch(appinfo, NULL, context, NULL); + if(g_app_info_launch(appinfo, NULL, context, NULL) && retval == DW_ERROR_UNKNOWN) + retval = DW_ERROR_NONE; g_object_unref(appinfo); g_object_unref(context);