Package: xdg-utils
Version: 1.1.0~rc1-2ubuntu7
Severity: minor

When run as a session group leader, xdg-open can fail silently: if it
runs {gvfs,gnome}-open (or any other open script which does not wait
for its child to finish before returning) then itself exits, the child
can be reaped before it has detached itself from its cty.

See comment #15 in https://bugzilla.gnome.org/show_bug.cgi?id=652262

This happens in practice when running xdg-open from Emacs as an
asynchronous command, e.g. using the & command in dired. This is
reported in various places as a problem, and typically the fix is a)
not to use xdg-open, or b) to force Emacs to use a pipe, not a pty:
http://lists.gnu.org/archive/html/help-gnu-emacs/2013-03/msg00273.html

Since this problem is really in the programs that xdg-open calls, it
should really be fixed there. As you can see in the bug report above,
I've offered to fix gvfs-open; however, gnome-open is obsolete, and in
the mean-time there's an easy Debian-specific fix: run these programs
setsid. This is easy for Debian because setsid is in util-linux, which
is a required package; the fix won't work in upstream xdg-utils, as
setsid is not a standard utility.

Hence maybe you'd consider making this fix in Debian?

Simply change the calls of {gvfs,gnome}-open to

setsid {gvfs,gnome}-open

-- System Information:
Debian Release: wheezy/sid
  APT prefers trusty-updates
  APT policy: (500, 'trusty-updates'), (500, 'saucy-updates'), (500, 
'saucy-security'), (500, 'saucy'), (90, 'trusty')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11.0-17-generic (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

xdg-utils depends on no packages.

Versions of packages xdg-utils recommends:
ii  libfile-mimeinfo-perl  0.16-2
ii  x11-utils              7.7+1
ii  x11-xserver-utils      7.7+0ubuntu2

Versions of packages xdg-utils suggests:
ii  gvfs-bin  1.18.3-0ubuntu1+saucy1

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to