summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2011-12-14Fix build by adding forgotten ','Vincent Untz1-1/+1
2011-10-19Mark all zz-application/* MIME types as aliasesVincent Untz1-13/+11
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.
2011-10-19Deal with various zz-application/zz-winassoc-XXX mime typesHans de Goede1-2/+14
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
2011-03-31Add Unity to list of registered environmentsVincent Untz1-1/+1
See http://lists.freedesktop.org/archives/xdg/2011-March/011856.html
2010-10-05Accept x-scheme-handler/* mime typesVincent Untz1-1/+1
This will be used by desktops to know which applications can handle a URI scheme.
2010-09-20build: Update all Makefile.am to more recent standardsVincent Untz1-8/+8
2010-09-10Sort mime types alphabetically in update-desktop-database cacheVincent Untz1-1/+10
This makes the cache easier to read, in case some people want to take a look.
2010-09-10Rework help of all toolsVincent Untz3-67/+69
Some text was reworded, and the options were re-ordered.
2010-09-10Always output values as lists in the cache from update-desktop-databaseVincent Untz1-3/+1
When there was only one desktop file for a mime type, we were not adding the trailing ;.
2010-09-10If -q and -v are passed to update-desktop-database, ignore -vVincent Untz1-1/+1
2010-03-19Fix typo in commentVincent Untz1-1/+1
2010-03-19Make icon names with an extension for Icon key a non-fatal errorVincent Untz1-6/+5
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.
2010-03-19Accept chemical/* mime types as valid typesVincent Untz1-1/+6
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
2010-03-10Handle some exceptions to be a bit more flexibleVincent Untz1-21/+74
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).
2010-03-10Make the invalid mime type error non-fatal for nowVincent Untz1-5/+5
2010-03-10Fix wrong return value in case of errorVincent Untz1-1/+1
FALSE was used instead of MU_INVALID.
2010-03-10Fix warning for X- media types not showingVincent Untz1-1/+2
2010-03-10Handle some fdo media types correctlyVincent Untz1-9/+30
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.
2010-03-10Make some of the new errors non-fatal for nowVincent Untz1-8/+25
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.
2010-03-10Accept empty Categories key as validVincent Untz1-0/+4
It's really like not having the Categories key at all, which is valid.
2010-03-10Mark the AutostartCondition key as an Application keyVincent Untz1-0/+2
2010-03-10Use g_utf8_strchr instead of strchr to be on the safe sideVincent Untz1-1/+1
Since the string can be UTF-8, it's better to make sure we look for a character in a UTF-8-compatible way.
2010-03-10Use G_DIR_SEPARATOR instead of '/'Vincent Untz1-1/+1
2010-03-10Handle AutostartCondition keyVincent Untz1-1/+105
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
2010-03-10Tweak an error stringVincent Untz1-2/+3
2010-03-10Improve one string for translationVincent Untz1-11/+4
This also fix https://bugs.freedesktop.org/show_bug.cgi?id=24924 as a side-effect.
2010-03-10Mark all output strings as translatableVincent Untz1-8/+10
2010-03-10Consistent use of quotes in error messagesVincent Untz1-6/+6
2010-03-10Improve error messagesVincent Untz1-4/+8
Loosely based on patch from Erik Hovland <erik@hovland.org> https://bugs.freedesktop.org/show_bug.cgi?id=20039
2010-03-10Update copyrights, and add vim modelinesVincent Untz9-47/+90
2010-03-10Fix indentation and remove trailing spacesVincent Untz5-73/+74
2010-03-10Remove .cvsignore filesVincent Untz1-9/+0
2010-03-10Use git.mk from pango to autogenerate .gitignore filesVincent Untz1-0/+2
2009-01-10add "warning" to the error strings that are output when fixing the desktopVincent Untz1-2/+2
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-10add LXDE in the list of registered OnlyShowIn values.Vincent Untz1-1/+1
2009-01-10 Vincent Untz <vuntz@gnome.org> * src/validate.c: add LXDE in the list of registered OnlyShowIn values.
2008-12-10fix warning in a commentVincent Untz1-1/+1
2008-12-10 Vincent Untz <vuntz@gnome.org> * src/mimeutils.c: fix warning in a comment
2008-04-27Be stricter for the MIME type check. It's actually a bit too strict rightVincent Untz5-96/+287
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-26check that the Comment does not look like the Name of the GenericNameVincent Untz1-8/+51
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-26make a few more structure static, change the way we store data about theVincent Untz2-67/+231
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-26at least one main category must be included in the Categories. Output anVincent Untz1-3/+22
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-06don't unlink the destination file if it's the same as the source file inVincent Untz1-2/+7
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-05Fix crash with really small lines that are invalid, like just "a". Fox bugVincent Untz1-1/+10
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-20don't get the MimeType key from the first start group (which might notVincent Untz2-1/+4
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
2007-12-14Consider icon names with extensions a warning and not an error for now.Ray Strode1-1/+1
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-01validate the desktop file after modifying its content, but before doingVincent Untz1-9/+10
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-01Don't exit(), but let the main() function do it with a proper errorVincent Untz1-5/+8
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-01require glib 2.8.0 kill (main): directly use g_mkdir_with_parents()Vincent Untz1-23/+1
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-01simplify the code with a macro (parse_options_callback): ifVincent Untz1-67/+44
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-18handle -m too. Fix bug #12018. Patch by Matthias ClasenVincent Untz1-3/+6
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-18Handle X-Foo in environments. Based on patch by Stanislav BrabecVincent Untz1-2/+9
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-