midori -v doesn't work!

Bug #1591605 reported by Mehrzad
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Midori Web Browser
Expired
Undecided
Unassigned

Bug Description

Environment:
timonti@gux:~/Downloads/midori-0.5.11/midori$ lsb_release -a
No LSB modules are available.
Distributor ID: elementary OS
Description: elementary OS Freya
Release: 0.3.2
Codename: freya
timonti@gux:~/Downloads/midori-0.5.11/midori$ uname -a
Linux gux 3.19.0-61-generic #69~14.04.1-Ubuntu SMP Thu Jun 9 09:09:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
timonti@gux:~/Downloads/midori-0.5.11/midori$

midori --version gives the following output with a warning
timonti@gux:~/Downloads/midori-0.5.11/midori$ midori --version

** (midori:5026): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-RKq96MRje4: Connection refused

Midori 0.5.11 ((null)) Midori
GTK+ 3.14.15 (3.14.15) Glib 2.42.2 (2.42.2)
WebKitGTK+ 2.4.8 (2.4.10) libSoup 2.44.2
cairo 1.14.2 (1.14.2) libnotify No
gcr 3.10.1 granite 0.3.1

Copyright (c) 2007-2013 Christian Dywan

Please report comments, suggestions and bugs to:
 https://bugs.launchpad.net/midori

Check for new versions at:
 http://www.midori-browser.org
timonti@gux:~/Downloads/midori-0.5.11/midori$

midori -v errors out with (lots of)errors and gives unknown option error
...
...
...
(midori:5070): Gdk-CRITICAL **: gdk_keymap_get_modifier_mask: assertion 'GDK_IS_KEYMAP (keymap)' failed

(midori:5070): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed

(midori:5070): Gtk-CRITICAL **: _gtk_replace_virtual_modifiers: assertion 'GDK_IS_KEYMAP (keymap)' failed
midori - Unknown option -v
timonti@gux:~/Downloads/midori-0.5.11/midori$

man midori shows -v and --version to do the same thing
NAME
       midori - fast and lightweight web browser

SYNOPSIS
       midori [OPTION...] [URL]

DESCRIPTION
       midori is a lightweight web browser.

OPTIONS
   Application Options:
       -v, --version
              Display program version

Revision history for this message
Mehrzad (timonti-deactivatedaccount) wrote :

from the code - main.c uses -V (capital V) and not -v (small v) which is documented in the man page.
       { "version", 'V', 0, G_OPTION_ARG_NONE, &version,
       N_("Display program version"), NULL },

Changing to "v" should fix this issue.

Revision history for this message
Mehrzad (timonti-deactivatedaccount) wrote :

changing GOptionEntry entries variable to have version short-form as -v and not -V

Revision history for this message
gue5t gue5t (gue5t) wrote :

I don't think we have a man page. Where are you finding one?

As far as I'm aware, -V is the correct short flag for --version.

Changed in midori:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Midori because there has been no activity for 60 days.]

Changed in midori:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.