summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Accept version 1.1Matthias Clasen2016-06-181-0/+3
| | | | | When the current spec version was updated to 1.1, we forgot to ensure that we actually accept Version=1.1 in desktop files.
* validate: Ensure DBusActivatable filenames conform to reverse-DNS notation.Hans Petter Jansson2016-06-171-1/+45
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=66904
* mimeutils: Allow multipart/related MIME type.Hans Petter Jansson2016-05-111-0/+3
| | | | | | It's implemented as an extension of RFC 822 and is used for MHTML. https://bugs.freedesktop.org/show_bug.cgi?id=93376
* validate: Fix buffer over-read on incomplete escape sequence.Hans Petter Jansson2016-02-291-0/+10
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=94303
* Add EDE to the list of desktop environmentsDavid Faure2014-04-011-1/+1
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=56353
* Add Cinnamon to list of registered environments.Michael Webster2014-04-011-1/+1
| | | | | | https://github.com/linuxmint/Cinnamon https://bugs.freedesktop.org/show_bug.cgi?id=73497
* desktop-file-validate: Trailing semicolons have been downgraded to optionalJerome Leclanche2014-04-011-105/+0
| | | | | https://bugs.freedesktop.org/show_bug.cgi?id=76902 Approved by David Faure and Ryan Lortie
* validator: Do not print two errors if file doesn't existVincent Untz2013-08-291-3/+1
|
* Allow validating multiple desktop filesMatthias Clasen2013-08-291-9/+16
| | | | | There is no good reason to not allow this. https://bugs.freedesktop.org/show_bug.cgi?id=60744
* Admit that we validate more than 1.0Matthias Clasen2013-07-191-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.
* Warn about OnlyShowIn in Action groupsMatthias Clasen2013-07-191-2/+2
| | | | | This was recently removed from the desktop entry spec, see https://bugs.freedesktop.org/show_bug.cgi?id=66712
* Add DBusActivatable key to allowed keysMatthias Clasen2013-07-191-0/+2
| | | | This is a recent addition to the desktop entry spec.
* Tweak help output to stay within 80 columnsMatthias Clasen2013-07-181-1/+1
|
* update-desktop-database: List only once a desktop file per mime typeVincent Untz2013-01-071-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.
* validate: Add Feed category, that can be used with NetworkVincent Untz2012-10-111-0/+1
| | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=20197 See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
* validate: Add Network as related category for MonitorVincent Untz2012-10-111-1/+1
| | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=49699 See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
* validate: Add Shooter category for gamesVincent Untz2012-10-111-0/+1
| | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=38553 See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
* validate: Add Maps category, and document where to put GIS applicationsVincent Untz2012-10-111-0/+1
| | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=20187 See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
* validate: Add Science as related category for more Education categoriesVincent Untz2012-10-111-8/+8
| | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=20186 See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
* validate: Make Science a main categoryVincent Untz2012-10-111-1/+1
| | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=20186 See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
* validate: Add Spirituality and Humanities categoriesVincent Untz2012-10-111-0/+2
| | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=20192 See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
* validate: Change some related categories from "and" to "or"Vincent Untz2012-10-111-20/+20
| | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=35844 See http://lists.freedesktop.org/archives/xdg/2012-October/012526.html
* validate: Code style fixesVincent Untz2012-10-031-34/+35
|
* validate: Accept and validate GNOME3/GSettings for AutostartConditionVincent Untz2012-10-031-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
* validate: Rework multiple main categories detectionVincent Untz2012-10-031-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.
* validate: Clarify message when outputting an item of listVincent Untz2012-10-031-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.
* validate: Add hint about suggested related categoriesVincent Untz2012-10-031-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)
* validate: Add Adult categoryVincent Untz2012-10-031-0/+1
| | | | See http://lists.freedesktop.org/archives/xdg/2011-November/012106.html
* validate: Output hint if more than one main category is presentVincent Untz2012-10-031-0/+14
|
* validate: Only print hint if no main category is present, not an errorVincent Untz2012-10-031-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)
* validate: Add function to print hints, and --no-hints optionVincent Untz2012-10-034-4/+30
| | | | This is useful to suggest improvements to the user.
* validate: Add TDE to to list of registered OnlyShowInVincent Untz2012-05-111-1/+1
| | | | See http://lists.freedesktop.org/archives/xdg/2012-April/012374.html
* validate: Add XFCE to to list of registered categoriesVincent Untz2012-04-111-0/+1
| | | | | See http://lists.freedesktop.org/archives/xdg/2012-March/012302.html and http://lists.freedesktop.org/archives/xdg/2012-April/012348.html
* install: Do not require glib >= 2.28Vincent Untz2012-04-031-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
* validate: Cleanup previous commitVincent Untz2012-03-021-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.
* validate: Validate Desktop ActionsGiovanni Campagna2012-03-021-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.
* Add MATE and Razor to list of registered environmentsVincent Untz2012-01-241-1/+1
| | | | See http://lists.freedesktop.org/archives/xdg/2012-January/012250.html
* validate: Handle list of locale strings in fixup tooMatthias Clasen2012-01-121-26/+51
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=44098
* validate: Add support for updated Keywords keyVincent Untz2011-12-191-49/+131
| | | | This is not a KDE-specific key anymore, but a list of locale strings.
* update-desktop-database: Ignore desktop files with Hidden=trueVincent Untz2011-12-151-0/+7
| | | | | | | Those desktop files should be considered as non-existent, according to the spec. https://bugs.freedesktop.org/show_bug.cgi?id=31099
* install: Look at RPM_BUILD_ROOT to know where to install desktop filesVincent Untz2011-12-141-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.
* install: Add hidden --edit-mode to force edit modeVincent Untz2011-12-141-0/+9
| | | | This helps the developer test the mode without installing :-)
* keyfileutils: Do not pretend we can save to URIVincent Untz2011-12-143-10/+7
| | | | This is just wrong, and breaks saving to relative paths in edit mode.
* install: Add an edit modeVincent Untz2011-12-141-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.
* build: Create a desktop-file-edit symlink to desktop-file-installVincent Untz2011-12-141-0/+9
|
* install: Use "process" instead of "install" in messagesVincent Untz2011-12-141-2/+2
| | | | This makes the tool feel a bit less install-specific.
* install: Move the install command line options to an option groupVincent Untz2011-12-141-15/+25
| | | | They're usually not needed as the default behavior is fine.
* keyfileutils: Also copy translations when copying a keyVincent Untz2011-12-141-7/+55
| | | | | We of course don't do that if we're dealing with keys that are localized keys.
* keyfileutils: Drop unneeded checkVincent Untz2011-12-141-4/+0
|
* install: Remove localized keys when setting/removing a keyVincent Untz2011-12-143-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.