#677430 `gio open` exits before its child process does

Package:
libglib2.0-bin
Source:
glib2.0
Description:
Programs for the GLib library
Submitter:
Vincent Bernat
Date:
2021-08-24 11:18:04 UTC
Severity:
normal
Tags:
#677430#5
Date:
2012-06-13 22:28:17 UTC
From:
To:
Hi!

gvfs-open allows one to open a file with the "preferred
application". Unfortunately, it exits as soon as the application is
started. Therefore, it is not usable from another application that
provides a temporary file and waits for the application to terminate
to delete it (typically, a mail program).

This bug has already been reported upstream last year:
https://bugzilla.gnome.org/show_bug.cgi?id=652262

I have just provided a patch. Maybe it could go in Debian before being
applied upstream (or before the next version with the patch, if
applied, hits Debian). It could a solution to people wondering how to
solve bug #497779 by adding the appropriate wildcard entry in
/etc/mailcap (not a perfect solution, but better than nothing).

- -- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gvfs-bin depends on:
ii  gvfs-common   1.12.3-1
ii  libc6         2.13-33
ii  libglib2.0-0  2.32.3-1

gvfs-bin recommends no packages.

Versions of packages gvfs-bin suggests:
ii  gvfs  1.12.3-1

- -- no debconf information
iEYEARECAAYFAk/ZE/wACgkQKFvXofIqeU4lXACfTbU0A4tt1R991SMRhBHnN0V+
BDgAn2r6CczANZDH7Tw0sfNmpvyMro8e
=luFt
-----END PGP SIGNATURE-----

#677430#14
Date:
2021-08-24 11:16:12 UTC
From:
To:
Control: reassign -1 libglib2.0-bin 2.56.1-1
Control: retitle -1 `gio open` exits before its child process does
Control: forwarded -1 https://gitlab.gnome.org/GNOME/glib/-/issues/1208
Control: tags -1 = upstream

gvfs-open is obsolete and is likely to be removed from Debian 12.
The replacement is `gio open`, which has basically the same design
(and therefore the same issue when opening short-lived files), so I'm
reassigning this to `gio open`.

In Debian 11, gvfs-open is a Debian-specific shell script that wraps
`gio open`.

Sorry, we are not going to add new "API" in Debian unless it has been
accepted upstream (or at the very least, is well on the way to being
accepted upstream), and new command-line options and behaviours are API.

    smcv