gksudo grabs cmdline arguments even if they appear after the called program (was: ubuntu-bug doesn't honor -w when called via gksudo)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gksu (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When calling ubuntu-bug -w it shows a dialog ("After closing this message please click on an application window to report a problem about it.") and expects you to click on some window to determine the process/package against which the bug should be reported.
During a running upgrade I tried that and got: "that window doesn't belong to you" (correct, it was owned by root :-))
Calling gksudo ubuntu-bug -w results in the standard dialog ("what kind of problem do you want to report?") instead of the one initiated by the -w.
Steps to replicate:
1) call ubuntu-bug --- see the standard dialog
2) call ubuntu-bug -w --- see the "click" dialog
3) call gksudo ubuntu-bug -w --- see the standard dialog
btw: the attached logs seem to show a crash of apport, which is unrelated to this bug
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: apport 2.6.1-0ubuntu6
ProcVersionSign
Uname: Linux 3.5.0-17-generic x86_64
ApportVersion: 2.6.1-0ubuntu6
Architecture: amd64
Date: Fri Oct 26 16:48:16 2012
InstallationDate: Installed on 2010-11-16 (709 days ago)
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
MarkForUpload: True
PackageArchitec
SourcePackage: apport
UpgradeStatus: Upgraded to quantal on 2012-10-25 (0 days ago)
The correct invocation is:
gksudo -- ubuntu-bug -w
Unfortunately it doesn't seem to be documented anywhere and the whole behavior looks like a gksu bug to me.