Bug#877936: gio: different behavior when called from shell or program - does not return immediately when called from program
Norbert Preining
norbert at preining.info
Sat Oct 7 14:38:17 UTC 2017
Package: libglib2.0-bin
Version: 2.54.1-1
Severity: important
Hi,
gio would be a nice option to use from other programs written in any kind of
language to open files.
Unfortunately, there seems to be no way to get the same behavior as of the
command line:
$ gio open foo.pdf
....# opens foo.pdf in my defined viewer
$
gio returns *immediately* after opening the file and does *NOT* wait for the
viewer to be closed.
Doing the same from perl:
..
`gio open foo.pdf`;
...
Does *INDEED* wait for the viewer to be terminated.
This is very unfortunate and counter-intuitive and useless.
I want to open a viewer but keep my program running, but the current
mode hangs and waits for the viewer to terminate until execution in
the calling program continues.
gio should have a command line switch that defines the behavior on return
values.
All the best
Norbert
-- System Information:
Debian Release: buster/sid
APT prefers unstable
APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.14.0-rc3+ (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages libglib2.0-bin depends on:
ii libc6 2.24-17
ii libelf1 0.170-0.1
ii libglib2.0-0 2.54.1-1
ii libglib2.0-data 2.54.1-1
libglib2.0-bin recommends no packages.
libglib2.0-bin suggests no packages.
-- no debconf information
Norbert
--
PREINING Norbert http://www.preining.info
Accelia Inc. + JAIST + TeX Live + Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
More information about the pkg-gnome-maintainers
mailing list