Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
There is no good reason to not allow this.
https://bugs.freedesktop.org/show_bug.cgi?id=60744
|
|
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.
|
|
This was recently removed from the desktop entry spec,
see https://bugs.freedesktop.org/show_bug.cgi?id=66712
|
|
This is a recent addition to the desktop entry spec.
|
|
|
|
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.
|
|
https://bugs.freedesktop.org/show_bug.cgi?id=20197
See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
|
|
https://bugs.freedesktop.org/show_bug.cgi?id=49699
See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
|
|
https://bugs.freedesktop.org/show_bug.cgi?id=38553
See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
|
|
https://bugs.freedesktop.org/show_bug.cgi?id=20187
See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
|
|
https://bugs.freedesktop.org/show_bug.cgi?id=20186
See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
|
|
https://bugs.freedesktop.org/show_bug.cgi?id=20186
See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
|
|
https://bugs.freedesktop.org/show_bug.cgi?id=20192
See http://lists.freedesktop.org/archives/xdg/2012-October/012525.html
|
|
https://bugs.freedesktop.org/show_bug.cgi?id=35844
See http://lists.freedesktop.org/archives/xdg/2012-October/012526.html
|
|
|
|
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
|
|
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.
|
|
In some messages, we don't display the key value, but one item of the
value (which is a list). Make this clearer.
|
|
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)
|
|
See http://lists.freedesktop.org/archives/xdg/2011-November/012106.html
|
|
|
|
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)
|
|
This is useful to suggest improvements to the user.
|
|
See http://lists.freedesktop.org/archives/xdg/2012-April/012374.html
|
|
See http://lists.freedesktop.org/archives/xdg/2012-March/012302.html and
http://lists.freedesktop.org/archives/xdg/2012-April/012348.html
|
|
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
|
|
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.
|
|
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.
|
|
See http://lists.freedesktop.org/archives/xdg/2012-January/012250.html
|
|
https://bugs.freedesktop.org/show_bug.cgi?id=44098
|
|
This is not a KDE-specific key anymore, but a list of locale strings.
|
|
Those desktop files should be considered as non-existent, according to
the spec.
https://bugs.freedesktop.org/show_bug.cgi?id=31099
|
|
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.
|
|
This helps the developer test the mode without installing :-)
|
|
This is just wrong, and breaks saving to relative paths in edit mode.
|
|
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.
|
|
|
|
This makes the tool feel a bit less install-specific.
|
|
They're usually not needed as the default behavior is fine.
|
|
We of course don't do that if we're dealing with keys that are
localized keys.
|
|
|
|
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.
|
|
Also move the reversal of the edit_actions list to a post-parsing hook.
|
|
The new order in --help-edit makes more sense.
|
|
|
|
|
|
This is important for this to work correctly:
--remove-key GenericName --copy-generic-name-to-name
|
|
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.
|
|
|