summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2013-08-29validator: Do not print two errors if file doesn't existVincent Untz1-3/+1
2013-08-29Allow validating multiple desktop filesMatthias Clasen1-9/+16
There is no good reason to not allow this. https://bugs.freedesktop.org/show_bug.cgi?id=60744
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-18Tweak help output to stay within 80 columnsMatthias Clasen1-1/+1
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-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-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-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
2011-12-19validate: Add support for updated Keywords keyVincent Untz1-49/+131
This is not a KDE-specific key anymore, but a list of locale strings.
2011-12-15update-desktop-database: Ignore desktop files with Hidden=trueVincent Untz1-0/+7
Those desktop files should be considered as non-existent, according to the spec. https://bugs.freedesktop.org/show_bug.cgi?id=31099
2011-12-14install: Look at RPM_BUILD_ROOT to know where to install desktop filesVincent Untz1-1/+6
If the default directory to install desktop files is used, then look at the RPM_BUILD_ROOT environment variable in case a package is being built to correctly install the .desktop file.
2011-12-14install: Add hidden --edit-mode to force edit modeVincent Untz1-0/+9
This helps the developer test the mode without installing :-)
2011-12-14keyfileutils: Do not pretend we can save to URIVincent Untz3-10/+7
This is just wrong, and breaks saving to relative paths in edit mode.
2011-12-14install: Add an edit modeVincent Untz1-62/+97
This mode is used when the program is called as desktop-file-edit. In this mode, we just allow inline editing of one .desktop file.
2011-12-14build: Create a desktop-file-edit symlink to desktop-file-installVincent Untz1-0/+9
2011-12-14install: Use "process" instead of "install" in messagesVincent Untz1-2/+2
This makes the tool feel a bit less install-specific.
2011-12-14install: Move the install command line options to an option groupVincent Untz1-15/+25
They're usually not needed as the default behavior is fine.
2011-12-14keyfileutils: Also copy translations when copying a keyVincent Untz1-7/+55
We of course don't do that if we're dealing with keys that are localized keys.
2011-12-14keyfileutils: Drop unneeded checkVincent Untz1-4/+0
2011-12-14install: Remove localized keys when setting/removing a keyVincent Untz3-0/+35
If we set a key to a new value, then clearly, the translations are outdated and should be removed. If we remove a key, then the intention is to also remove the translations.
2011-12-14install: Add --set-key/--set-value options to set an arbitrary keyVincent Untz1-3/+101
Also move the reversal of the edit_actions list to a post-parsing hook.
2011-12-14install: Move options aroundVincent Untz1-36/+36
The new order in --help-edit makes more sense.
2011-12-14install: Add options to set Name, GenericName, Comment, Icon keysVincent Untz1-0/+69
2011-12-14install: Add --add-not-show-in/--remove-not-show-in optionsVincent Untz1-0/+30
2011-12-14install: Also handle --copy-generic-name-to-name & friends orderedVincent Untz1-25/+28
This is important for this to work correctly: --remove-key GenericName --copy-generic-name-to-name
2011-12-14install: Respect order of edit optionsVincent Untz1-51/+81
We want to support cases like: --remove-key Categories --add-category AudioVideo Until now, we were not keeping the order of edit options and this resulted in removing keys before editing lists (which is wrong for the case above). In general, people expect the order of their edit options to be respected.
2011-12-14install: Split parsing of install & edit optionsVincent Untz1-65/+92