Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
Even popular zz-application/* MIME types (like
zz-application/zz-winassoc-doc) should actually just be used as aliases
to the real valid MIME types.
This needs some fixes to shared-mime-info so that it knows about the
aliases, but it's the right thing to do.
|
|
zz-application is not a valid media type, but unfortunately there are
quite a few mime types out there in the form of
zz-application/zz-winassoc-XXX
This patch makes mimeutils deal with these in 2 different ways:
1) For the "popular" ones (doc and xls) simply accept them
2) For the others, advice the standard mime type for these files
https://bugs.freedesktop.org/show_bug.cgi?id=41286
|
|
See http://lists.freedesktop.org/archives/xdg/2011-March/011856.html
|
|
This will be used by desktops to know which applications can handle a
URI scheme.
|
|
|
|
This makes the cache easier to read, in case some people want to take a
look.
|
|
Some text was reworded, and the options were re-ordered.
|
|
When there was only one desktop file for a mime type, we were not adding
the trailing ;.
|
|
|
|
|
|
We made this a warning to not annoy everybody, but this is really an
error. Since we now have a mechanism to handle non-fatal error, use it
here.
|
|
While those mime types are not strictly valid since they were never
accepted by the IANA, they are used by real applications. It's also
well-defined (http://www.ch.ic.ac.uk/chemime/), and used by
real-world applications.
Thanks to Pascal Terjan <pterjan@mandriva.com> for noticing this.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=420795
|
|
There are known exceptions like misc/ultravox that we should support.
We should also recommend to use a valid alias instead of an invalid mime
type (for example, flv-application/octet-stream should be replaced with
video/x-flv).
|
|
|
|
FALSE was used instead of MU_INVALID.
|
|
|
|
inode, x-content and x-directory are used already, and should be
considered as special case (even though they haven't be registered with
IANA).
Note that x-directory is discouraged, though, since inode/directory
replaces it.
|
|
Making errors introduced in a release fatal will annoy many people.
They're still marked as errors and will be visible (so fixable), but
they won't make the program return 1, so people can still work.
They should be marked as fatal after the release.
|
|
It's really like not having the Categories key at all, which is valid.
|
|
|
|
Since the string can be UTF-8, it's better to make sure we look for a
character in a UTF-8-compatible way.
|
|
|
|
While this never really made it into the autostart specification, it's
in use now. And it was well-received when proposed, so it will probably
enter the specification.
https://bugs.freedesktop.org/show_bug.cgi?id=20627
|
|
|
|
This also fix https://bugs.freedesktop.org/show_bug.cgi?id=24924 as a
side-effect.
|
|
|
|
|
|
Loosely based on patch from Erik Hovland <erik@hovland.org>
https://bugs.freedesktop.org/show_bug.cgi?id=20039
|
|
|
|
|
|
|
|
|
|
2009-01-10 Vincent Untz <vuntz@gnome.org>
* src/validate.c: (desktop_file_fixup): add "warning" to the error
strings that are output when fixing the desktop file so that people can
learn about the errors and directly fix them.
Fix bug #18206.
|
|
2009-01-10 Vincent Untz <vuntz@gnome.org>
* src/validate.c: add LXDE in the list of registered OnlyShowIn values.
|
|
2008-12-10 Vincent Untz <vuntz@gnome.org>
* src/mimeutils.c: fix warning in a comment
|
|
2008-04-28 Vincent Untz <vuntz@gnome.org>
Be stricter for the MIME type check. It's actually a bit too strict
right now, see the TODO at the beginning of mimeutils.c to know how to
improve things a bit.
* src/Makefile.am:
* src/mimeutils.[ch]: add new files
* src/update-desktop-database.c: (process_desktop_file): use the
improved mu_mime_type_is_valid() function instead of
is_valid_mime_type()
* src/validate.c: (handle_mime_key): use the improved
mu_mime_type_is_valid() function instead of a trivial check
|
|
2008-04-26 Vincent Untz <vuntz@gnome.org>
* src/validate.c: (handle_comment_key): check that the Comment does not
look like the Name of the GenericName
(validate_keys_for_current_group): instead of storing only the
information that a group contain a key, also link to the content of the
key. Also report the error of multiple keys with the same name the
first time we have a key (instead of the second time).
Plug a small leak.
|
|
2008-04-26 Vincent Untz <vuntz@gnome.org>
* src/validate.c: make a few more structure static, change the way we
store data about the know catgories so that we have more information
(like dependencies)
(handle_categories_key): updated for the previous change. We now
additionally check that categories required by another one are present.
Fix bug #15672.
* src/validator.c: init warn_kde to FALSE. Fix the "warnings about KDE
specific uses are always shown" bug.
|
|
2008-04-26 Vincent Untz <vuntz@gnome.org>
* src/validate.c: (handle_categories_key): at least one main category
must be included in the Categories. Output an error if it's not the
case.
|
|
2008-03-06 Vincent Untz <vuntz@gnome.org>
* src/install.c: (process_one_file): don't unlink the destination file
if it's the same as the source file in case of errors.
Fix bug #14851.
|
|
2008-02-05 Vincent Untz <vuntz@gnome.org>
Fix crash with really small lines that are invalid, like just "a".
Fox bug #14386.
* src/validate.c: (validate_line_looks_like_group): only return
something in *group if the group argument is not NULL, and if the line
is actually a group one
(validate_parse_line): ensure we pass NULL initial values to some
functions, and don't leak key and value when processing a key-value
line before the first group
|
|
2008-01-20 Vincent Untz <vuntz@gnome.org>
* src/update-desktop-database.c: (process_desktop_file): don't get the
MimeType key from the first start group (which might not exist), but
from the Desktop Entry group
Fix GNOME bug #509526.
* src/validate.c: (handle_icon_key): mention that Ray's change is
temporary
|
|
2006-11-07 Ray Strode <rstrode@redhat.com>
* src/validate.c: Consider icon names with extensions a
warning and not an error for now.
|
|
2007-09-01 Vincent Untz <vuntz@gnome.org>
* src/install.c: (process_one_file): validate the desktop file after
modifying its content, but before doing anything else, so that we
don't unlink the original file if the created one is not valid.
Also, unlink the created file if it's not valid.
|
|
2007-09-01 Vincent Untz <vuntz@gnome.org>
Don't exit(), but let the main() function do it with a proper error
message.
* src/install.c: (files_are_the_same): it's useless to exit() here if
we can't stat() the files. Just continue the operations without
removing the original file, that's the best option.
(process_one_file): don't exit(), but set the GError
|
|
2007-09-01 Vincent Untz <vuntz@gnome.org>
* configure.in: require glib 2.8.0
* src/install.c: (mkdir_and_parents): kill
(main): directly use g_mkdir_with_parents()
|
|
2007-09-01 Vincent Untz <vuntz@gnome.org>
* src/install.c: (process_one_file): simplify the code with a macro
(parse_options_callback): if --add-category="GNOME;GTK" is passed as
argument, parse the list of categories instead of assuming the user
only gave one category.
Fix bug #12207.
|
|
2007-08-18 Vincent Untz <vuntz@gnome.org>
* src/install.c: (parse_options_callback): handle -m too.
Fix bug #12018.
Patch by Matthias Clasen <mclasen@redhat.com>
|
|
2007-08-18 Vincent Untz <vuntz@gnome.org>
Handle X-Foo in environments.
Based on patch by Stanislav Brabec <sbrabec@suse.cz>.
Fix bug #11565.
* src/validate.c: (handle_show_in_key): handle "X-Foo" and change the
error message to mention X-
(handle_categories_key): change a bit the error message to mention X-
|