summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-05-11randomwip/dfiRyan Lortie3-244/+35
2014-09-20testRyan Lortie26-0/+1307
2014-09-20utilsRyan Lortie2-0/+103
2014-04-04implzRyan Lortie1-32/+101
2013-10-04Don't use strcmp with qsortRyan Lortie2-2/+16
No matter how many times I make this mistake...
2013-10-04Convert text index to a hash tableRyan Lortie5-107/+106
Just like the string list before it, we see a substantial performance improvement from converting DfiTextIndex to be based on GHashTable instead of GSequence.
2013-10-04Change how we add strings for keyfilesRyan Lortie1-18/+12
This makes it match the way we write the keyfile to the index, which prevents a failed assert in the case that we have entries before the first group. That's technically invalid, but we should be able to deal with invalid input without aborting.
2013-10-04dfiRyan Lortie14-9/+1941
2013-10-04Split out the building of the mime cacheRyan Lortie4-262/+318
Create a new file for the code that builds the mime cache. We still do the actual write to disk from the main file, though.
2013-10-04Use GLib logging facilities with handler funcRyan Lortie2-16/+26
...instead of our custom-rolled macros. This will allow splitting users of the logging functions into separate files that don't need direct access to global variables.
2013-10-04Restructure how we build and write the mime cacheRyan Lortie1-28/+45
Separate the building of the cache data from the writing of the file. This will allow us to have more control over when/how we write the cache to disk and will also let us move the logic for generating the cache to a separate file.
2013-10-04Remove a dirty use of a global variableRyan Lortie1-30/+19
Also remove some unnecessary forward declarations.
2013-10-04update-desktop-database: use g_file_set_contents()Ryan Lortie1-88/+13
Instead of our own unsafe (non-fsyncing) homebrewed version of the same.
2013-07-19Admit that we validate more than 1.0Matthias Clasen1-1/+1
While the versioning of the spec itself is in a somewhat sad state, it is more realistic to say we are validating according to 1.1 than to 1.0.
2013-07-19Warn about OnlyShowIn in Action groupsMatthias Clasen1-2/+2
This was recently removed from the desktop entry spec, see https://bugs.freedesktop.org/show_bug.cgi?id=66712
2013-07-19Add DBusActivatable key to allowed keysMatthias Clasen1-0/+2
This is a recent addition to the desktop entry spec.
2013-07-18Update the desktop-file-validate man pageMatthias Clasen1-2/+5
The man page was not mentioning --no-hints, and was referring to version 1.0 of the desktop entry spec. This commit fixes both issues.
2013-07-18Tweak help output to stay within 80 columnsMatthias Clasen1-1/+1
2013-05-20autogen.sh: Honor NOCONFIGURE=1Colin Walters1-4/+5
See http://people.gnome.org/~walters/docs/build-api.txt
2013-01-07update-desktop-database: List only once a desktop file per mime typeVincent Untz1-0/+7
If a desktop file is registering the same mime type more than once (useless but okay), the desktop file was listed more than once for that mime type in mimeinfo.cache. It's easy to avoid, so make sure we only have a desktop file once per mime type.
2012-10-11release: post-release bump to 0.22Vincent Untz1-1/+1
2012-10-11release: 0.210.21Vincent Untz1-0/+19
2012-10-11validate: Add Feed category, that can be used with NetworkVincent Untz1-0/+1
https://bugs.freedesktop.org/show_bug.cgi?id=20197 See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
2012-10-11validate: Add Network as related category for MonitorVincent Untz1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=49699 See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
2012-10-11validate: Add Shooter category for gamesVincent Untz1-0/+1
https://bugs.freedesktop.org/show_bug.cgi?id=38553 See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
2012-10-11validate: Add Maps category, and document where to put GIS applicationsVincent Untz1-0/+1
https://bugs.freedesktop.org/show_bug.cgi?id=20187 See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
2012-10-11validate: Add Science as related category for more Education categoriesVincent Untz1-8/+8
https://bugs.freedesktop.org/show_bug.cgi?id=20186 See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
2012-10-11validate: Make Science a main categoryVincent Untz1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=20186 See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
2012-10-11validate: Add Spirituality and Humanities categoriesVincent Untz1-0/+2
https://bugs.freedesktop.org/show_bug.cgi?id=20192 See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
2012-10-11validate: Change some related categories from "and" to "or"Vincent Untz1-20/+20
https://bugs.freedesktop.org/show_bug.cgi?id=35844 See http://lists.freedesktop.org/archives/xdg/2012-October/012526.html
2012-10-03validate: Code style fixesVincent Untz1-34/+35
2012-10-03validate: Accept and validate GNOME3/GSettings for AutostartConditionVincent Untz1-7/+132
We try to validate as much as we can the content of AutostartCondition. This means: - for GNOME3, we check that if-session/unless-session is used with an additional argument - for GSettings, we check that two arguments are passed Additionally, we now add more validation for the GNOME condition (one argument needs to be passed). https://bugs.freedesktop.org/show_bug.cgi?id=55483
2012-10-03validate: Rework multiple main categories detectionVincent Untz1-11/+51
AudioVideo is required if Audio or Video is present, and that would be two main categories. But in that case, this is okay. So we need to ignore the case of two main categories when one is required by the other.
2012-10-03validate: Clarify message when outputting an item of listVincent Untz1-3/+3
In some messages, we don't display the key value, but one item of the value (which is a list). Make this clearer.
2012-10-03validate: Add hint about suggested related categoriesVincent Untz1-147/+199
Now that related categories are not required (in general, see below for an exception), we don't need to error out when they're missing. Still, it's nice to suggest them with a hint. Note that there are still cases where another category is required (AudioVideo for Audio, for instance). Part of https://bugs.freedesktop.org/show_bug.cgi?id=35844 (comment 6 and later)
2012-10-03validate: Add Adult categoryVincent Untz1-0/+1
See http://lists.freedesktop.org/archives/xdg/2011-November/012106.html
2012-10-03validate: Output hint if more than one main category is presentVincent Untz1-0/+14
2012-10-03validate: Only print hint if no main category is present, not an errorVincent Untz1-7/+8
The requirement to have at least one main category was removed for the specification a few months ago. It's still useful to tell people with a hint about the risk of not including one, though. See http://lists.freedesktop.org/archives/xdg/2011-November/012123.html Part of https://bugs.freedesktop.org/show_bug.cgi?id=35844 (comment 6 and later)
2012-10-03validate: Add function to print hints, and --no-hints optionVincent Untz4-4/+30
This is useful to suggest improvements to the user.
2012-05-11validate: Add TDE to to list of registered OnlyShowInVincent Untz1-1/+1
See http://lists.freedesktop.org/archives/xdg/2012-April/012374.html
2012-04-11validate: Add XFCE to to list of registered categoriesVincent Untz1-0/+1
See http://lists.freedesktop.org/archives/xdg/2012-March/012302.html and http://lists.freedesktop.org/archives/xdg/2012-April/012348.html
2012-04-03install: Do not require glib >= 2.28Vincent Untz1-0/+5
We still only check for an older version of glib, and requiring 2.28 just for g_slist_free_full() can be silly. So if we don't have 2.28, just use the equivalent trivial code. https://bugs.freedesktop.org/show_bug.cgi?id=48133
2012-03-05release: post-release bump to 0.21Vincent Untz1-1/+1
2012-03-05release: 0.200.20Vincent Untz1-0/+11
2012-03-02validate: Cleanup previous commitVincent Untz1-73/+102
One small fix worth mentioning is that we don't consider seeing an Exec key in an action group as having seen an Exec key in the main group.
2012-03-02validate: Validate Desktop ActionsGiovanni Campagna1-43/+136
Destkop Actions were recently reintroduced in the specification, with full specification of semantics and allowed keys. Previously the validator would allow and ignore any desktop action description, now it requires them to be compliant.
2012-02-22build: Update git.mk and ignore generated tarballsVincent Untz2-9/+20
2012-02-22build: Generate ChangeLog on make distVincent Untz1-0/+13
2012-01-24Add MATE and Razor to list of registered environmentsVincent Untz1-1/+1
See http://lists.freedesktop.org/archives/xdg/2012-January/012250.html
2012-01-12validate: Handle list of locale strings in fixup tooMatthias Clasen1-26/+51
https://bugs.freedesktop.org/show_bug.cgi?id=44098