After global menu fix it forks before printing output for --help,-h
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
ProcVersionSign
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)
PackageArchitec
SourcePackage: virt-manager
UpgradeStatus: No upgrade log present (probably fresh install)
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