Screen.gdkSpawnOnScreen

Warning gdk_spawn_on_screen has been deprecated since version 2.24 and should not be used in newly-written code. This function is being removed in 3.0. Use either g_spawn_sync(), g_spawn_async(), or GdkAppLaunchContext instead. Like g_spawn_async(), except the child process is spawned in such an environment that on calling gdk_display_open() it would be returned a GdkDisplay with screen as the default screen. This is useful for applications which wish to launch an application on a specific screen. Since 2.4

class Screen
int
gdkSpawnOnScreen

Parameters

workingDirectory string

child's current working directory, or NULL to inherit parent's

argv string[]

child's argument vector

envp string[]

child's environment, or NULL to inherit parent's

flags GSpawnFlags

flags from GSpawnFlags

childSetup GSpawnChildSetupFunc

function to run in the child just before exec()

userData void*

user data for child_setup

childPid int

return location for child process ID, or NULL

Return Value

Type: int

TRUE on success, FALSE if error is set

Throws

GException on failure.

Meta