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 671244 - Add support for freedesktop.org Keywords
Add support for freedesktop.org Keywords
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
3.3.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2012-03-03 08:34 UTC by Nathan Williams
Modified: 2013-11-07 23:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
debdiff with changes to .desktop (2.28 KB, application/octet-stream)
2012-03-03 08:34 UTC, Nathan Williams
  Details
fixed patch (2.26 KB, patch)
2012-03-03 09:22 UTC, Nathan Williams
needs-work Details | Review
format-patch (1.05 KB, patch)
2012-03-03 17:08 UTC, Nathan Williams
reviewed Details | Review
format-patch with keywords/name flagged for translation (1.06 KB, patch)
2012-03-03 17:27 UTC, Nathan Williams
none Details | Review
corrected patch (1.07 KB, patch)
2012-03-04 18:46 UTC, Nathan Williams
none Details | Review
[PATCH] add support for fd.o desktop action spec (945 bytes, patch)
2012-03-05 16:00 UTC, Nathan Williams
committed Details | Review
updated patch, adds some keywords (417 bytes, patch)
2012-03-13 12:58 UTC, Sebastien Bacher
none Details | Review
corrected document action (769 bytes, patch)
2012-03-31 12:33 UTC, Nathan Williams
none Details | Review

Description Nathan Williams 2012-03-03 08:34:40 UTC
Created attachment 208896 [details]
debdiff with changes to .desktop

http://standards.freedesktop.org/desktop-entry-spec/latest/apa.html
Comment 1 Nathan Williams 2012-03-03 09:22:41 UTC
Created attachment 208898 [details] [review]
fixed patch

added XDG Keywords, removed ayatana specific TargetEnvironment
Comment 2 Ignacio Casal Quinteiro (nacho) 2012-03-03 09:30:05 UTC
Review of attachment 208898 [details] [review]:

Please provide a format-patch against master.
Comment 3 Nathan Williams 2012-03-03 17:08:49 UTC
Created attachment 208908 [details] [review]
format-patch

here's a format-patch against master
Comment 4 Ignacio Casal Quinteiro (nacho) 2012-03-03 17:11:25 UTC
Review of attachment 208908 [details] [review]:

See comments.

::: data/gedit.desktop.in.in
@@ +14,3 @@
+
+[Desktop Action Window]
+Name=Open a New Window

should this be marked for transaltion?

@@ +19,3 @@
+
+[Desktop Action Document]
+Name=Open a New Window

shouldn't this be marked for translation?
Comment 5 Nathan Williams 2012-03-03 17:27:45 UTC
Created attachment 208911 [details] [review]
format-patch with keywords/name flagged for translation

good point, here's a changed format-patch with name flagged for translation.
Comment 6 Paolo Borelli 2012-03-04 13:40:36 UTC
Review of attachment 208911 [details] [review]:

The commit contains the invalid email "<nathan@loki.(none)>", can you fix that?
Comment 7 Nathan Williams 2012-03-04 18:46:41 UTC
Created attachment 208962 [details] [review]
corrected patch

sorry about that. i had amended the commit, but that somehow made it into the format-master.
Comment 8 Sebastien Bacher 2012-03-05 12:29:34 UTC
you might want to update the description to mention the keywords or do 2 commits one for keywords and one for the action groups
Comment 9 Nathan Williams 2012-03-05 16:00:12 UTC
Created attachment 209009 [details] [review]
[PATCH] add support for fd.o desktop action spec

removed keywords change, will handle in a separate commit. thanks!
Comment 10 Jeremy Bicha 2012-03-06 05:51:49 UTC
One more change. Could you please use sentence case: "Open a new document" instead of "Open a New Document"? Thanks!

Here's a source for that decision: https://code.launchpad.net/~bilalakhtar/gedit/unity-quicklist/+merge/63696
Comment 11 Jeremy Bicha 2012-03-06 14:05:41 UTC
Never mind. Apparently Title Case is correct now. The style changed and I didn't realize it.
Comment 12 Sebastien Bacher 2012-03-06 18:26:45 UTC
<pbor> seb128: btw, feel free to also push the desktop actions patch
Comment 13 Nathan Williams 2012-03-06 22:43:10 UTC
thanks, Seb!
Comment 14 Sebastien Bacher 2012-03-13 12:55:36 UTC
Reopening, the keywords part didn't get resolved in fact
Comment 15 Sebastien Bacher 2012-03-13 12:58:00 UTC
Created attachment 209603 [details] [review]
updated patch, adds some keywords

The Keywords field is an official xdg one now and is used in gnome-shell and Unity searches, increase chances for users to find the applications they want

I'm just re-using the keywords from Nathan's patch there, "Plaintext;Write;" I guess gedit could use some extra ones since it's also a nice editor for programming
Comment 16 Nathan Williams 2012-03-31 12:33:48 UTC
Created attachment 211030 [details] [review]
corrected document action

Review shows I erred in the --new-document action, fixing. My apologies.

I also stripped the Unity-only stuff, as it appears gnome-shell is now adopting contextual application menus?