After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 785520 - Replace advice to use removed gdk_spawn functions
Replace advice to use removed gdk_spawn functions
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: docs
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
: 759485 775785 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2017-07-28 10:22 UTC by Daniel Boles
Modified: 2017-10-05 13:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gspawn: Don’t mention removed gdk_spawn functions (2.23 KB, patch)
2017-07-28 10:31 UTC, Daniel Boles
none Details | Review
gspawn: Don’t mention removed gdk_spawn functions (2.39 KB, patch)
2017-08-03 13:45 UTC, Daniel Boles
committed Details | Review

Description Daniel Boles 2017-07-28 10:22:50 UTC
gspawn.c says 

> If you are writing a GTK+ application, and the program you are
> spawning is a graphical application, too, then you may want to use
> gdk_spawn_on_screen[_with_pipes]() instead to ensure that the spawned
> program opens its windows on the right screen.

The gdk_spawn functions are deprecated. This should instead advise to use the DISPLAY env var or GdkAppLaunchContext to set the display, etc of the spawned graphical app.
Comment 1 Daniel Boles 2017-07-28 10:26:54 UTC
(In reply to Daniel Boles from comment #0)
> The gdk_spawn functions are deprecated.

Google had taken me to GDK2 documentation. In GDK3, these are removed altogether.
Comment 2 Daniel Boles 2017-07-28 10:31:30 UTC
Created attachment 356504 [details] [review]
gspawn: Don’t mention removed gdk_spawn functions

If there's a better replacement than this, let me know. This is just what I got from a quick glance at the related docs and an even quicker search for people replacing the gdk_spawn functions in the past.
Comment 3 Daniel Boles 2017-08-03 13:45:53 UTC
Created attachment 356847 [details] [review]
gspawn: Don’t mention removed gdk_spawn functions
Comment 4 Daniel Boles 2017-09-12 17:15:29 UTC
*** Bug 759485 has been marked as a duplicate of this bug. ***
Comment 5 Philip Withnall 2017-10-05 13:48:33 UTC
*** Bug 775785 has been marked as a duplicate of this bug. ***