After global menu fix it forks before printing output for --help,-h

Bug #973585 reported by Roman Yepishev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
virt-manager (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

STR:

1. virt-manager --help

Actual results:
Shell prompt returns before the output is printed

Expected results:
Shell prompt returns after the output is printed

This is the code that makes it so:
    # We need to fork before importing gtk so global menus and appindicator
    # support works. We also need to defer parsing the command line until
    # after gtk strips out it's own options. Cheat by taking a peek into
    # sys.argv directly here. We have to defer dropping stdio until later
    # once we've actually parsed the command line, or we won't get any
    # errors or help text.
    if not '--no-fork' in sys.argv and not '--debug' in sys.argv:
        drop_tty()

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: virt-manager 0.9.1-1ubuntu3
ProcVersionSignature: Ubuntu 3.2.0-21.34-generic 3.2.13
Uname: Linux 3.2.0-21-generic x86_64
ApportVersion: 2.0-0ubuntu4
Architecture: amd64
Date: Wed Apr 4 20:15:42 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120225)
PackageArchitecture: all
SourcePackage: virt-manager
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Roman Yepishev (rye) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package virt-manager - 0.9.1-1ubuntu4

---------------
virt-manager (0.9.1-1ubuntu4) precise; urgency=low

  * debian/patches/fork_before_gtk_import.patch: updated to also parse
    command line options before forking so we get error messages and help.
    Unfortunately, this has the side-effect of preventing the use of GTK
    command-line options. (LP: #973585)
 -- Marc Deslauriers <email address hidden> Wed, 04 Apr 2012 13:40:54 -0400

Changed in virt-manager (Ubuntu):
status: New → Fix Released
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.