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 686980 - seahorse --help returns "GLib-GIO-CRITICAL **: This application can not open files."
seahorse --help returns "GLib-GIO-CRITICAL **: This application can not open ...
Status: RESOLVED FIXED
Product: seahorse
Classification: Applications
Component: general
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: Seahorse Maintainer
Seahorse Maintainer
Depends on:
Blocks:
 
 
Reported: 2012-10-27 12:37 UTC by Tobiasz Jarczyk
Modified: 2013-02-19 05:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix command line options parsing (1.18 KB, patch)
2013-02-18 22:58 UTC, Nuno Araujo (IRC: russo79)
committed Details | Review

Description Tobiasz Jarczyk 2012-10-27 12:37:40 UTC
Running seahorse --help in Ubuntu 12.10 in terminal fails:
$ seahorse --help
** Message: init gpgme version 1.2.0

(seahorse:7998): GLib-GIO-CRITICAL **: This application can not open files.

The same for seahorse -h:
$ seahorse -h
** Message: init gpgme version 1.2.0

(seahorse:9090): GLib-GIO-CRITICAL **: This application can not open files.

$ seahorse -v
seahorse 3.6.2
GNUPG: /usr/bin/gpg (1.4.11)
Comment 1 Stef Walter 2013-02-04 16:18:22 UTC
So I guess we want two things here:

a) Not have the CRITICAL failure, and bogus message.
b) Print out useful help.
Comment 2 Mateus Felipe 2013-02-05 11:53:32 UTC
I got a backtrace of the bug:

  • #0 g_logv
    at gmessages.c line 974
  • #1 g_log
    at gmessages.c line 1003
  • #2 g_application_real_local_command_line
    at gapplication.c line 505
  • #3 g_application_real_local_command_line
    at gapplication.c line 462
  • #4 seahorse_application_local_command_line
    at seahorse-application.c line 150
  • #5 g_application_run
    at gapplication.c line 1574
  • #6 main
    at seahorse-main.c line 63

Comment 3 Nuno Araujo (IRC: russo79) 2013-02-18 22:58:43 UTC
Created attachment 236679 [details] [review]
Fix command line options parsing

Enable --help command line option.
Display an error message if a unknown command line option is passed to the application.
Comment 4 Stef Walter 2013-02-19 05:53:09 UTC
Comment on attachment 236679 [details] [review]
Fix command line options parsing

Thanks. Pushed.
Comment 5 Stef Walter 2013-02-19 05:56:21 UTC
Pushed to gnome-3-6 branch as well.