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 795781 - doesn't pass "open" signal to Gtk3::Application
doesn't pass "open" signal to Gtk3::Application
Status: RESOLVED NOTABUG
Product: gnome-perl
Classification: Bindings
Component: Gtk3
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk2-perl-bugs
gtk2-perl-bugs
Depends on:
Blocks:
 
 
Reported: 2018-05-03 18:03 UTC by Jeffrey Ratcliffe
Modified: 2018-09-15 20:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gtk_application_ex.pl (1.98 KB, text/plain)
2018-05-03 18:03 UTC, Jeffrey Ratcliffe
Details
gtk_application_ex.py (1.71 KB, text/plain)
2018-05-03 18:04 UTC, Jeffrey Ratcliffe
Details

Description Jeffrey Ratcliffe 2018-05-03 18:03:19 UTC
Created attachment 371644 [details]
gtk_application_ex.pl

The "open" signal is emitted, either by the "open with" menu option in a file manager, or by supplying file names on the command line, or via gdbus. Attached is a minimal perl script, running it with a filename as an argument, e.g.:

perl gtk_application_ex.pl file.name

should open a window and then report the signals emitted in the terminal window:

starting with file.name
Hello world!
running activate
files: file.name
Goodbye world!

Unforunately, the open signal is never emitted, and so the files: line is not printed. A python version of the same script is also attached. This works as expected.
Comment 1 Jeffrey Ratcliffe 2018-05-03 18:04:31 UTC
Created attachment 371645 [details]
gtk_application_ex.py
Comment 2 Torsten Schoenfeld 2018-05-04 10:41:40 UTC
Is this still an issue if you use

  $app->run([$0, @ARGV]);

as suggested in <https://mail.gnome.org/archives/gtk-perl-list/2018-May/msg00002.html>?