Merge lp:~voldyman/granite/fixed-960531 into lp:~elementary-pantheon/granite/granite

Proposed by Akshay Shekher
Status: Merged
Approved by: Sergey "Shnatsel" Davidoff
Approved revision: 306
Merged at revision: 304
Proposed branch: lp:~voldyman/granite/fixed-960531
Merge into: lp:~elementary-pantheon/granite/granite
Diff against target: 19 lines (+8/-1)
1 file modified
lib/Widgets/AboutDialog.vala (+8/-1)
To merge this branch: bzr merge lp:~voldyman/granite/fixed-960531
Reviewer Review Type Date Requested Status
Sergey "Shnatsel" Davidoff (community) Approve
Review via email: mp+114634@code.launchpad.net

Description of the change

in the about dialog box. when the user clicks "Report A Problem"
"ubuntu-bug `pidOfCurrentProcess`"

To post a comment you must log in.
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

Cool, I didn't know ubuntu-bug can be called by PID. I don't like the fact that activate_link(bug) is commented out; it should be called from the exception handler if launching ubuntu-bug fails, for compatibility with distros other than Ubuntu.

Revision history for this message
Akshay Shekher (voldyman) wrote :

i was thinking if apport-gui might be a better option than ubuntu-bug.
what your opinion.

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

Turns out "apport-bug" is the real executable name, "ubuntu-bug" is just an alias. There's no "apport-gui" command.

lp:~voldyman/granite/fixed-960531 updated
303. By Akshay Shekher

Moved activate_link to exception handler

304. By Akshay Shekher

Using apport-bug instead of ubuntu-bug

305. By Akshay Shekher

this one is for ricotz. fixed spacing and int cast

306. By Akshay Shekher

fixed 'minor' error.ricotz 2 voldyman 0.

Revision history for this message
Akshay Shekher (voldyman) wrote :

after a lot of discussion on how to support(or not) apport-bug on distributions other than ubuntu. this has been finalized.

try { [run apport-bug] }
catch { [open link to lauchpad bug report] }

 <voldyman> shnatsel, has anything been decided for apport ??
 <shnatsel> voldyman: as far as I'm concerned, add hooks recommendation to libgranite and merge your branch

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

I've added hooks recommendation to packaging, see http://bazaar.launchpad.net/~elementary-os/granite/deb-packaging/revision/31
This is cleared for merging now.

review: Approve
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

The current solution -
try { [run apport-bug] }
catch { [open link to lauchpad bug report] }
- won't work if Apport is installed but our Apport hooks are not installed because of bug 1023912 in Apport. Works fine for other distros though. I guess we'll have to live with it, because bug reports without Apport-collected info are becoming increasingly useless.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/Widgets/AboutDialog.vala'
2--- lib/Widgets/AboutDialog.vala 2012-05-30 03:31:18 +0000
3+++ lib/Widgets/AboutDialog.vala 2012-07-12 16:06:22 +0000
4@@ -136,7 +136,14 @@
5
6 /* bug button */
7 bug_button = new Button.with_label (_("Report a Problem"));
8- bug_button.pressed.connect (() => { activate_link(bug); });
9+ bug_button.pressed.connect (() => {
10+ try {
11+ GLib.Process.spawn_command_line_async ("apport-bug %i".printf (Posix.getpid ()));
12+ } catch (Error e) {
13+ warning ("Could Not Launch 'apport-bug'.");
14+ activate_link (bug);
15+ }
16+ });
17 action_area.pack_start (bug_button, false, false, 0);
18
19 action_area.reorder_child (bug_button, 0);

Subscribers

People subscribed via source and target branches