After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 508910 - Add bug-buddy support to cheese.desktop
Add bug-buddy support to cheese.desktop
Status: RESOLVED FIXED
Product: cheese
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Cheese Maintainer(s)
Cheese Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2008-01-12 10:29 UTC by Luca Ferretti
Modified: 2008-01-26 11:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The proposed patch (1.36 KB, patch)
2008-01-12 10:29 UTC, Luca Ferretti
committed Details | Review

Description Luca Ferretti 2008-01-12 10:29:01 UTC
Adding some X-GNOME-Bugzilla-* keys to cheese.desktop, bug-buddy will be able to automatically send crash reports to bugzilla.gnome.org.

Here is the patch, also fixing .desktop file syntax (thanks to `desktop-file-validate` utility). OK to commit?
Comment 1 Luca Ferretti 2008-01-12 10:29:30 UTC
Created attachment 102655 [details] [review]
The proposed patch
Comment 2 daniel g. siegel 2008-01-12 11:01:22 UTC
this seems ok to me, but will break the desktop file installation for waf. do you mind checking that too?
Comment 3 Luca Ferretti 2008-01-12 11:23:32 UTC
I don't know waf, I'll try to check it.

But all you need is "convert" .desktop.in.in file to .desktop.in before running intltool, replacing the @VERSION@ with the cheese current version
Comment 4 daniel g. siegel 2008-01-12 11:50:24 UTC
can you show me the ruleset autotool uses?
Comment 5 Jaap A. Haitsma 2008-01-12 13:08:08 UTC
Daniel,

waf does not support this. It should be one of the items on our waf for GNOME todo list.
My suggestion is to let Luca apply the patch. We can see in the autofoo build what commands are necessary to process a desktop.in.in file and make a patch for waf

Luca,

I always thought that for bug buddy support gnome_program_init was necessary. We use gtk_init
Comment 6 daniel g. siegel 2008-01-12 13:37:29 UTC
i think it shouldnt be too hard to add it to waf, as this "conversion" is just replacing @VERSION@ imho...
Comment 7 Luca Ferretti 2008-01-12 15:25:10 UTC
(In reply to comment #4)
> can you show me the ruleset autotool uses?
> 

Honestly... dunno. 

I just know that you (i.e. GNOME developer) can simply put the @VERSION@ placeholder in .desktop.in.in then add .desktop.in in AC_OUTPUT list in configure.[ac|in].

Running configure, the generated .desktop.in will have the proper version value, grabbed from configure.

BTW it seems that X-GNOME-Bugzilla-Version is optional. See http://live.gnome.org/TwoPointFifteen/ReleaseNotes -> For Developers
Comment 8 Luca Ferretti 2008-01-12 15:30:56 UTC
(In reply to comment #5)
> Daniel,
> 
> Luca,
> 
> I always thought that for bug buddy support gnome_program_init was necessary.
> We use gtk_init
> 

From 2.19.0 NEWS: build a GTK_MODULE invoking bug-buddy on segfaults.

Comment 9 Luca Ferretti 2008-01-12 15:32:30 UTC
For more info about supported X-GNOME-Bugzilla keys, check this email from Olav Vitters to desktop-devel-list 

http://mail.gnome.org/archives/desktop-devel-list/2006-August/msg00162.html
Comment 10 daniel g. siegel 2008-01-13 14:51:48 UTC
luca, please commit it
Comment 11 Luca Ferretti 2008-01-13 16:10:38 UTC
2008-01-13  Luca Ferretti  <elle.uca@libero.it>

	reviewed by: Daniel G. Siegel and Jaap A. Haitsma

	* configure.ac:
	* data/cheese.desktop.in:
	* data/cheese.desktop.in.in:
	Add X-GNOME-Bugzilla-* keys and validate .desktop file.
	Fix bug #508910 when waf will be able to generate .in from .in.in

Committed (revision 391)
Comment 12 daniel g. siegel 2008-01-13 16:33:28 UTC
your name alone would be enough ;)
Comment 13 daniel g. siegel 2008-01-26 11:51:48 UTC
2008-01-18  Jaap Haitsma <jaap@haitsma.org>

  * data/wscript_build,
    wscript:
    Process desktop.in.in with waf