gksudo grabs cmdline arguments even if they appear after the called program (was: ubuntu-bug doesn't honor -w when called via gksudo)

Bug #1071788 reported by Guntbert Reiter
10
This bug affects 2 people
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
ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5
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
PackageArchitecture: all
SourcePackage: apport
UpgradeStatus: Upgraded to quantal on 2012-10-25 (0 days ago)

Revision history for this message
Guntbert Reiter (guntbert) wrote :
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

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.

affects: apport (Ubuntu) → gksu (Ubuntu)
Revision history for this message
Guntbert Reiter (guntbert) wrote :

Sergey: How in the world did you find that? Anyway thx, I changed the bug's description accordingly.

summary: - ubuntu-bug doesn't honor -w when called via gksudo
+ gksudo grabs cmdline arguments even if they appear after the called
+ program (was: ubuntu-bug doesn't honor -w when called via gksudo)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gksu (Ubuntu):
status: New → Confirmed
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.