Re: Can't launch apps, fork() returns ENOMEM
- From: Simon McVittie <smcv collabora com>
- To: gtk-devel-list gnome org
- Subject: Re: Can't launch apps, fork() returns ENOMEM
- Date: Thu, 12 Apr 2018 12:19:21 +0100
On Wed, 11 Apr 2018 at 14:02:57 -0600, Daniel Drake wrote:
I was wrong in thinking that gspawn lets you say "run this binary, and
here's the fd that you should use for stdout".
The interface for that is the newer GSubprocess and GSubprocessLauncher.
So, in order to avoid needing gnome-shell's app_child_setup(), we
would either need to extend the gspawn API to allow specific file
descriptors to be passed in, or perhaps another option to consider is
to have gdesktopappinfo call posix_spawn directly (instead of gspawn).
... or make GDesktopAppInfo use GSubprocess instead of g_spawn, and
have a way for GSubprocess to use posix_spawn instead of g_spawn
in the (hopefully common) case where its ChildData.child_setup_func
is NULL.
smcv
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]