[patch] use of getopts + guiless method

Bug #433664 reported by Wesley Schwengle
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Won't Fix
Wishlist
Unassigned

Bug Description

I've added -g to the ubuntu-bugs script so you don't need to unset the DISPLAY env variable before calling it. I like to have applications that can be configured/called with params to disable GUI's. Like mtr, vim etc. ubuntu-bugs uses X where I think it is not needed. I could call apport-cli.. Anyhows, here is a patch that implements GUI-less calling and implements getopts for -p|-P|-g

Tags: patch
Revision history for this message
Wesley Schwengle (wesleys) wrote :
tags: added: patch
Revision history for this message
Wesley Schwengle (wesleys) wrote :

I just went into bzr and saw there is no longer a ubuntu-bug file, it is called apport-bug now and it is different. New patch attached.

Made the following changes:

* Created a simple usage function
* Use getopts for option parsing
* Added -g for GUI-less operation of ubuntu/apport-bug script.

description: updated
Philip Muškovac (yofel)
Changed in apport (Ubuntu):
importance: Undecided → Wishlist
Bryce Harrington (bryce)
Changed in apport (Ubuntu):
status: New → Triaged
Revision history for this message
Martin Pitt (pitti) wrote :

I think that's a bit beside the point, though. apport-bug is precisely meant to be a wrapper to select apport-gtk, apport-kde, or apport-cli depending on the environment. If you want to ensure you get a CLI client, please just call apport-cli directly.

I don't like to have inconsistent options in apport-cli and apport-bug (and the other programs).

Thanks anyway!

Changed in apport (Ubuntu):
status: Triaged → Won't Fix
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.