summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-07-21use AM_SILENT_RULES if available for a quiet buildHEADmasterVincent Untz4-0/+11
2009-07-21 Vincent Untz <vuntz@gnome.org> * configure.in: use AM_SILENT_RULES if available for a quiet build * configure.in: * Makefile.am: use the m4 directory as macro dir
2009-01-10add "warning" to the error strings that are output when fixing the desktopVincent Untz2-2/+9
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 Untz2-1/+5
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 Untz2-1/+5
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 Untz6-96/+301
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 Untz2-8/+61
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 Untz3-67/+242
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 Untz2-3/+28
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 Untz2-2/+13
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-11post-release bump to 0.16Vincent Untz2-1/+7
2008-02-11 Vincent Untz <vuntz@gnome.org> * configure.in: post-release bump to 0.16
2008-02-11version 0.15DESKTOP_FILE_UTILS_0_15Vincent Untz2-0/+13
2008-02-11 Vincent Untz <vuntz@gnome.org> * NEWS: version 0.15
2008-02-05Fix crash with really small lines that are invalid, like just "a". Fox bugVincent Untz2-1/+22
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 Untz3-1/+13
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 Strode2-1/+6
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-01post-release bump to 0.15Vincent Untz2-1/+7
2007-09-01 Vincent Untz <vuntz@gnome.org> * configure.in: post-release bump to 0.15
2007-09-01version 0.14DESKTOP_FILE_UTILS_0_14Vincent Untz2-0/+23
2007-09-01 Vincent Untz <vuntz@gnome.org> * NEWS: version 0.14
2007-09-01small improvementsVincent Untz2-3/+12
2007-09-01 Vincent Untz <vuntz@gnome.org> * README: small improvements
2007-09-01validate the desktop file after modifying its content, but before doingVincent Untz2-9/+17
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 Untz2-5/+18
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 Untz3-24/+8
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 Untz2-67/+52
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 Untz2-3/+12
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 Untz2-2/+19
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-
2007-07-27new, checks that the value is either an absolute path to a file, or thatVincent Untz2-1/+58
2007-07-27 Vincent Untz <vuntz@gnome.org> * src/validate.c: (handle_icon_key): new, checks that the value is either an absolute path to a file, or that the value looks like an icon name without an extension (png, xpm or svg). Rejects relative pathes too.
2007-07-08pass the GError to g_key_file_load_from_file(), so we know when we can'tVincent Untz2-1/+7
2007-07-08 Vincent Untz <vuntz@gnome.org> * src/install.c: (process_one_file): pass the GError to g_key_file_load_from_file(), so we know when we can't load a file and print an error about this. Fix bug #11500.
2007-06-30updated to desktop entry spec 1.0. Patch by Ville SkyttäVincent Untz2-8/+40
2007-06-30 Vincent Untz <vuntz@gnome.org> * misc/desktop-entry-mode.el: updated to desktop entry spec 1.0. Patch by Ville Skyttä <ville.skytta@iki.fi>
2007-06-04post-release bump to 0.14Vincent Untz2-1/+7
2007-06-05 Vincent Untz <vuntz@gnome.org> * configure.in: post-release bump to 0.14
2007-06-04version 0.13DESKTOP_FILE_UTILS_0_13Vincent Untz2-0/+17
2007-06-05 Vincent Untz <vuntz@gnome.org> * NEWS: version 0.13
2007-06-04add myself update URL of the desktop entry specVincent Untz3-1/+7
2007-06-05 Vincent Untz <vuntz@gnome.org> * AUTHORS: add myself * src/validator.c: (main): update URL of the desktop entry spec
2007-06-04check if we have a vendor name before using it (main): fix bug when noVincent Untz2-11/+11
2007-06-04 Vincent Untz <vuntz@gnome.org> * src/install.c: (process_one_file): check if we have a vendor name before using it (main): fix bug when no vendor name or target dir is specified (we'd use an empty string in this case), don't require vendor name Fix bug #9988
2007-06-04Don't use GKeyFile in the validator, so we really control everything.Vincent Untz3-178/+539
2007-06-04 Vincent Untz <vuntz@gnome.org> Don't use GKeyFile in the validator, so we really control everything. * src/validate.c: remove some FIXME/TODO (validate_string_key): use g_ascii_iscntrl() instead of !g_ascii_isprint(), small update for the current group (validate_localestring_key): small update for the current group, don't use GKeyFile (validate_boolean_key): small update for the current group (validate_numeric_key): ditto (validate_string_regexp_list_key): use g_ascii_iscntrl() instead of !g_ascii_isprint(), small update for the current group (handle_type_key): small update for the current group (handle_version_key): ditto (handle_show_in_key): ditto (handle_exec_key): ditto (handle_path_key): ditto (handle_mime_key): ditto (handle_categories_key): small update for the current group, don't use GKeyFile (handle_actions_key): ditto (handle_dev_key): ditto (handle_mountpoint_key): ditto (handle_encoding_key): ditto (validate_desktop_key): ditto, the value is an argument now (validate_keys_for_current_group): renamed from validate_keys_for_group(), small update for the current group, don't use GKeyFile and build a hashtable of all the keys in the current group, also don't validate the key for Desktop Entry groups if the name of the key couldn't be validated since this means we'll get another error (validate_group_name): use g_ascii_iscntrl() instead of !g_ascii_isprint() (validate_groups_and_keys): killed (validate_required_keys): don't use GKeyFile (validate_line_is_comment): new (validate_line_looks_like_group): new (validate_line_looks_like_entry): new (validate_parse_line): new (validate_parse_data): new (inspired from gkeyfile.c) (validate_flush_parse_buffer): new (inspired from gkeyfile.c) (validate_parse_from_fd): new (inspired from gkeyfile.c) (validate_load_and_parse): new (inspired from gkeyfile.c) (groups_hashtable_free): new (desktop_file_validate): updated (desktop_file_fixup): small update to avoid confusion * src/validator.c: (main): fix leak
2007-03-15remove mention of desktop-menu-tool kill, was useless and deprecatedVincent Untz15-2845/+2237
2007-03-15 Vincent Untz <vuntz@gnome.org> * README: remove mention of desktop-menu-tool * acconfig.h: kill, was useless and deprecated * src/eggintl.h: kill, was useless since quite some time * autogen.sh: * configure.in: updated because of src/desktop_file.h removal * src/Makefile.am: updated for file removals/additions * src/desktop_file.[ch]: removed. We don't use this anymore (it was based on GnomeDesktopItem which nobody maintains and is too complex for what we need) * keyfileutils.[ch]: new, contains some useful functions based on GKeyFile * src/install.c: updated for changes (GnomeDesktopFile -> GKeyFile) (process_one_file): ditto also, improves a bit the --help output * src/validate.[ch]: pretty much a rewrite. This is based on GKeyFile for now, but it'll be moved to a small parser soon, so we are not limited because of the GKeyFile parser. The validator verifies more things, warns about usage of deprecated stuff, and contains some other nice improvements. It probably contains some bugs, though. * src/validator.c: updated (well, rewritten, since it's only the main() function). We also now have some command line arguments: --warn-kde to warn about usage of KDE reserved stuff --no-warn-deprecated to not warn about usage of deprecated stuff
2006-11-08post-release bump to 0.13.Ray Strode2-1/+7
2006-11-08 Ray Strode <rstrode@redhat.com> * configure.in: post-release bump to 0.13.
2006-11-08update news fileDESKTOP_FILE_UTILS_0_12Ray Strode2-1/+13
2006-11-08 Ray Strode <rstrode@redhat.com> * NEWS: update news file
2006-11-07If a desktop file contains "Applications" instead of "Application" makeRay Strode2-2/+8
2006-11-07 Ray Strode <rstrode@redhat.com> * src/validate.c: If a desktop file contains "Applications" instead of "Application" make the warning reflect that.
2006-11-07Print a warning instead of an error if categories aren't defined by theRay Strode2-37/+54
2006-11-07 Ray Strode <rstrode@redhat.com> * src/validate.c: Print a warning instead of an error if categories aren't defined by the spec. Give special handling to the "Application" category since it's not defined by the spec, but is in wide use, and can be translated to one of the "main categories". (gnome bug 343799 comment 8)
2006-11-07Validate keywords as localestrings instead of strings (red hat bugRay Strode2-1/+7
2006-11-07 Ray Strode <rstrode@redhat.com> * src/validate.c: Validate keywords as localestrings instead of strings (red hat bug 172423). Patch from Ville Skyttä <ville.skytta@iki.fi>
2006-11-07update categories to match the latest version of the desktop menuRay Strode2-23/+39
2006-11-07 Ray Strode <rstrode@redhat.com> * src/validate.c: update categories to match the latest version of the desktop menu specification, and reorder to make it easier to resync in the future. Patch from Ville Skyttä <ville.skytta@iki.fi> (red hat bug 212705)
2006-11-07apply fixes from Ville Skyttä <ville.skytta@iki.fi> to match the latestRay Strode2-28/+43
2006-11-07 Ray Strode <rstrode@redhat.com> * misc/desktop-entry-mode.el: apply fixes from Ville Skyttä <ville.skytta@iki.fi> to match the latest version of the spec
2006-11-06fix a couple of mem leaks. Patch from Pascal Terjan (gnoem bug 345686)Ray Strode2-1/+11
2006-11-06 Ray Strode <rstrode@redhat.com> * src/desktop_file.c: fix a couple of mem leaks. Patch from Pascal Terjan (gnoem bug 345686)
2006-11-06move g_free inside if branch to prevent a double free in the else case.Ray Strode2-1/+8
2006-11-06 Ray Strode <rstrode@redhat.com> * src/desktop_file.c: move g_free inside if branch to prevent a double free in the else case. Patch from Pascal Terjan (gnome bug 345309)
2006-11-06fix category typos: TeminalEmulator -> TerminalEmulator ScreenSaver ->Ray Strode2-2/+10
2006-11-06 Ray Strode <rstrode@redhat.com> * src/validate.c: fix category typos: TeminalEmulator -> TerminalEmulator ScreenSaver -> Screensaver spotted by Vincent Fretin (in gnome bug 342799)
2006-11-06add patch from Vincent Untz to not validate categories that start with X-Ray Strode2-0/+12
2006-11-06 Ray Strode <rstrode@redhat.com> * src/validate.c: add patch from Vincent Untz to not validate categories that start with X- (gnome bug 343799)
2006-07-26remove from cvsRay Strode5-3362/+4
2006-07-25 Ray Strode <rstrode@redhat.com> * src/egg*: remove from cvs
2006-04-18post-release bump to 0.12.Ray Strode2-1/+5
2006-04-18 Ray Strode <rstrode@redhat.com> * configure.in: post-release bump to 0.12.
2006-04-18==================== 0.11 ====================DESKTOP_FILE_UTILS_0_11Ray Strode2-0/+13
2006-04-18Validate that desktop file categories match those specified in the spec.Ray Strode6-264/+342
2006-04-18 Ray Strode <rstrode@redhat.com> Validate that desktop file categories match those specified in the spec. Patch from Emmet Hikory <emmet.hikory@gmail.com> and Vincent Untz <vuntz@gnome.org> (bug 3337786) * src/validate.c (validate_categories): new function to ensure that categories are known. 2006-04-18 Vincent Untz <vuntz@gnome.org> Use GKeyFile instead and kill egg-* usage (bug 319987). * src/Makefile.am: remove egg-* * src/update-desktop-database.c: (process_desktop_file): use GKeyFile (get_default_search_path): use g_get_system_data_dirs() 2006-04-18 Vincent Untz <vuntz@gnome.org> Port to GOption (bug 338575) * configure.in: remove the check for popt, depend on glib >= 2.6.0 * src/install.c: (parse_options_callback): rewritten (main): port to GOption * src/update-desktop-database.c: (sync_database): remove warning (main): port to GOption
2005-08-31resync from libegg to fix grammar error spotted by Moritz BarsnickRay Strode2-12/+18
2005-08-31 Ray Strode <rstrode@redhat.com> * src/eggdesktopentries.[ch]: resync from libegg to fix grammar error spotted by Moritz Barsnick <moritz@barsnick.net>. (this code should really be changed to use gkeyfile)
2005-01-10NULL terminate default search path. Spotted by Mike Hearn <mike@navi.cx>Ray Strode2-0/+8
2005-01-09 Ray Strode <rstrode@redhat.com> * src/update-desktop-database.c: NULL terminate default search path. Spotted by Mike Hearn <mike@navi.cx>
2004-11-23Patch from Ville Skyttä <ville.skytta@iki.fi>Mark McLoughlin3-3/+11
2004-11-23 Mark McLoughlin <mark@skynet.ie> Patch from Ville Skyttä <ville.skytta@iki.fi> * src/desktop_file.c: fix the lang -> encoding mapping to what the Desktop Entry Specification specifies.