lxde/menu-cache.git
22 months agoMerge pull request #18 from lxde/leak_fixes master
Alf Gaida [Sat, 2 Dec 2017 20:23:40 +0000 (21:23 +0100)] 
Merge pull request #18 from lxde/leak_fixes

libmenu-cache: Fix memory leaks

22 months agolibmenu-cache: Fix memory leaks
Palo Kisa [Thu, 30 Nov 2017 10:36:18 +0000 (11:36 +0100)] 
libmenu-cache: Fix memory leaks

23 months agoRelease 1.1.0. 1.1.0
Andriy Grytsenko [Thu, 2 Nov 2017 18:55:27 +0000 (20:55 +0200)] 
Release 1.1.0.

2 years agoFix over last commit, there were unneeded lines left after copy-paste.
Andriy Grytsenko [Wed, 13 Sep 2017 21:32:14 +0000 (00:32 +0300)] 
Fix over last commit, there were unneeded lines left after copy-paste.

2 years agoOpen listening socket in the child, after closing all file descriptors.
Andriy Grytsenko [Wed, 13 Sep 2017 19:19:20 +0000 (22:19 +0300)] 
Open listening socket in the child, after closing all file descriptors.

Otherwise we step into closing it by freopen() in case if stdin was closed before.
This should finally fix the issue with accept() failure introduced by commit
c8794da0cf5a194b5eaadf020f02a5cab89f54fc very early which did dup2() on stdin
without any check if it's not assigned to the listening socket.

2 years agoUse freopen() instead of dup2() in menu-cached.
Andriy Grytsenko [Tue, 12 Sep 2017 23:17:24 +0000 (02:17 +0300)] 
Use freopen() instead of dup2() in menu-cached.

If dup2 called for fd 0 which is a socket instead of stdin, it will cause
a fail on accept() later.

Also terminate menu-cached in case of listening socket error.

This change should fix 100% CPU load by menu-cached due to that, see
https://github.com/lxde/menu-cache/issues/7

2 years agoFix an issue with multiple daemons started.
Andriy Grytsenko [Mon, 11 Sep 2017 20:57:45 +0000 (23:57 +0300)] 
Fix an issue with multiple daemons started.

Added a test if daemon is already running on socket before killing old socket file.
See https://github.com/lxde/lxqt/issues/1311#issuecomment-312018367

2 years agoReduce inactivity timer to 6 seconds (from 600 seconds).
Andriy Grytsenko [Mon, 11 Sep 2017 20:52:50 +0000 (23:52 +0300)] 
Reduce inactivity timer to 6 seconds (from 600 seconds).

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863226
https://github.com/lxde/menu-cache/issues/17
https://github.com/lxde/menu-cache/issues/11

2 years agoMerge pull request #16 from yumkam/fix-fd-leaks
LStranger [Mon, 4 Sep 2017 22:25:01 +0000 (01:25 +0300)] 
Merge pull request #16 from yumkam/fix-fd-leaks

Fix potential fd leaks

2 years agoMerge pull request #13 from jablko/master
LStranger [Mon, 4 Sep 2017 22:14:44 +0000 (01:14 +0300)] 
Merge pull request #13 from jablko/master

Don't ignore subdirectories, monitor them.

2 years ago[SF#793] If XDG_DATA_HOME isn't set then use g_get_user_data_dir().
Andriy Grytsenko [Sat, 20 May 2017 11:48:09 +0000 (14:48 +0300)] 
[SF#793] If XDG_DATA_HOME isn't set then use g_get_user_data_dir().

2 years agoFix missing #include <glib/gstdio.h>
Andriy Grytsenko [Fri, 19 May 2017 21:57:59 +0000 (00:57 +0300)] 
Fix missing #include <glib/gstdio.h>

2 years agoCreate directory $XDG_DATA_HOME/applications if it does not exist.
Andriy Grytsenko [Fri, 19 May 2017 21:53:53 +0000 (00:53 +0300)] 
Create directory $XDG_DATA_HOME/applications if it does not exist.

that way it will be monitored in any case.

2 years agoAvoid leaking sockets into executed processes
Yuriy M. Kaminskiy [Mon, 15 May 2017 19:33:11 +0000 (22:33 +0300)] 
Avoid leaking sockets into executed processes

They are of no use for them without associated in-memory state.

2 years agoFix daemonization
Yuriy M. Kaminskiy [Mon, 15 May 2017 19:10:34 +0000 (22:10 +0300)] 
Fix daemonization

Close all inherited fds, not just mark them to-be-closed in spawned process.
Regression by 67a5484b41709f955b1694470f2b79c057a1898e (when this code
was executed inside library, exec(daemon) implictly closed all marked fds; in
daemon, fds should be explicitly closed).

2 years agoFix potential access violation, use runtime user dir instead of tmp dir.
Andriy Grytsenko [Sun, 14 May 2017 18:28:00 +0000 (21:28 +0300)] 
Fix potential access violation, use runtime user dir instead of tmp dir.

Note: it limits libmenu-cache compatibility to menu-cached >= 0.7.0.

2 years agoMerge pull request #15 from lxde/app_generic_name
LStranger [Sat, 22 Apr 2017 23:01:57 +0000 (02:01 +0300)] 
Merge pull request #15 from lxde/app_generic_name

libmenu-cache: Add API menu_cache_app_get_generic_name()

2 years agolibmenu-cache: Add API menu_cache_app_get_generic_name()
Palo Kisa [Wed, 19 Apr 2017 00:36:06 +0000 (02:36 +0200)] 
libmenu-cache: Add API menu_cache_app_get_generic_name()

..for getting the GenericName.

2 years ago[SF#863] Fix crash with invalid <Name> tag in a menu.
Andriy Grytsenko [Mon, 17 Apr 2017 19:43:56 +0000 (22:43 +0300)] 
[SF#863] Fix crash with invalid <Name> tag in a menu.

2 years agoDon't ignore subdirectories, monitor them.
Jack Bates [Wed, 11 Jan 2017 19:48:36 +0000 (12:48 -0700)] 
Don't ignore subdirectories, monitor them.

2 years agoRelease 1.0.2. 1.0.2
Andriy Grytsenko [Sun, 6 Nov 2016 16:21:50 +0000 (18:21 +0200)] 
Release 1.0.2.

2 years agoOption --disable-debug is now default, instead of --enable-debug.
Andriy Grytsenko [Sun, 6 Nov 2016 00:10:50 +0000 (02:10 +0200)] 
Option --disable-debug is now default, instead of --enable-debug.

2 years agoFix showing empty Other menu if there are NoDisplay elements in it.
Andriy Grytsenko [Sun, 6 Nov 2016 00:07:51 +0000 (02:07 +0200)] 
Fix showing empty Other menu if there are NoDisplay elements in it.

Fixes https://github.com/lxde/menu-cache/issues/10

2 years agoFix crash in menu-cache-gen on <MergeFile type="parent"/> if no file to merge found.
Andriy Grytsenko [Sat, 5 Nov 2016 18:59:54 +0000 (20:59 +0200)] 
Fix crash in menu-cache-gen on <MergeFile type="parent"/> if no file to merge found.

2 years agoIgnore invalid empty <DefaultLayout>, otherwise it will break menu.
Andriy Grytsenko [Sat, 5 Nov 2016 18:55:29 +0000 (20:55 +0200)] 
Ignore invalid empty <DefaultLayout>, otherwise it will break menu.

See https://github.com/lxde/menu-cache/issues/6 bug report.

2 years agoFix spelling error in a debug message (existabt -> existent).
Andriy Grytsenko [Sat, 5 Nov 2016 11:33:14 +0000 (13:33 +0200)] 
Fix spelling error in a debug message (existabt -> existent).

2 years agoFix illegal memory access after on_client_closed() after write error.
Andriy Grytsenko [Thu, 20 Oct 2016 23:16:40 +0000 (02:16 +0300)] 
Fix illegal memory access after on_client_closed() after write error.

2 years agoMerge pull request #12 from mtasaka/localwork
LStranger [Thu, 20 Oct 2016 22:51:57 +0000 (01:51 +0300)] 
Merge pull request #12 from mtasaka/localwork

Cancel old monitors only when cache regeneration succeeds.

3 years agoCall g_source_remove when destoying channel
Mamoru TASAKA [Mon, 8 Aug 2016 12:01:50 +0000 (21:01 +0900)] 
Call g_source_remove when destoying channel

ref: https://github.com/lxde/menu-cache/issues/7

It seems that even if the client side of *socket* is already
closed, the server side cannot receive POLLHUP. And when
it already happened, at the time the server tries to write
into the socket, SIGPIPE is received, then we firstly know that
the client is already closed.

Also, then closing GIOChannel, we must explicitly remove the
"source" added by g_io_add_watch, otherwise we see 100 percent
CPU usage by poll.

So we must register source id as well as channel simultaneously,
and call shutdown function explicitly when we receive
SIGPIPE.

3 years agoCancel old monitors only when cache regeneration succeeds.
Mamoru TASAKA [Tue, 26 Jul 2016 14:36:20 +0000 (23:36 +0900)] 
Cancel old monitors only when cache regeneration succeeds.

Currently when menu-cache-gen fails and regenrate_cache() returns
false, while cache->n_files are already freed, cache->n_files
remains non-zero, which causes segv.

So:
- cancel old monitors only when cache regeneration succeeds
- keep delayed_reload call when do_reload() fails cache->need_reload
  remain true.

3 years agoRemove debian/ from source
Julien Lavergne [Sun, 6 Mar 2016 17:06:49 +0000 (18:06 +0100)] 
Remove debian/ from source

3 years agoRelease 1.0.1. 1.0.1
Andriy Grytsenko [Mon, 7 Dec 2015 11:23:15 +0000 (13:23 +0200)] 
Release 1.0.1.

3 years ago[SF#780] Fix over previous commit - MenuMerge should be not static but allocated!
Andriy Grytsenko [Fri, 27 Nov 2015 23:32:01 +0000 (01:32 +0200)] 
[SF#780] Fix over previous commit - MenuMerge should be not static but allocated!

3 years ago[SF#780] Fix memory corruption in scanning <LegacyDir> addressed directory.
Andriy Grytsenko [Thu, 26 Nov 2015 16:24:41 +0000 (18:24 +0200)] 
[SF#780] Fix memory corruption in scanning <LegacyDir> addressed directory.

The layout was created from items on the stack but should be static instead.

3 years ago[SF#784] Fix ignored <Filename> tags inside of <Layout> tag.
Andriy Grytsenko [Tue, 17 Nov 2015 19:46:23 +0000 (21:46 +0200)] 
[SF#784] Fix ignored <Filename> tags inside of <Layout> tag.

The app attributes should be ignored and app added even if it's not matched
since layout should have priority over all common matching rules.

3 years ago[SF#752]Fix initial cache update, need_reload should be set to TRUE on scheduling.
Andriy Grytsenko [Fri, 13 Nov 2015 21:45:29 +0000 (23:45 +0200)] 
[SF#752]Fix initial cache update, need_reload should be set to TRUE on scheduling.

Otherwise delayed_reload() will never update the cache file.

4 years agoAdd safeguards against environment variables containing newlines.
Andriy Grytsenko [Wed, 15 Jul 2015 09:16:18 +0000 (12:16 +0300)] 
Add safeguards against environment variables containing newlines.

See https://github.com/lxde/menu-cache/issues/3

4 years agoFixed incorrect processing of <Merge type="files"> in menu-cache-gen.
Andriy Grytsenko [Tue, 14 Jul 2015 23:33:31 +0000 (02:33 +0300)] 
Fixed incorrect processing of <Merge type="files"> in menu-cache-gen.

It was wrongly processed as <Merge type="all">

4 years agoFix crash on <Filename/> in menu layout with <OnlyUnallocated/> tag.
Andriy Grytsenko [Tue, 14 Jul 2015 23:28:57 +0000 (02:28 +0300)] 
Fix crash on <Filename/> in menu layout with <OnlyUnallocated/> tag.

The menu should be added to application's menu list as well.

4 years agoFix crash when menu-cache-gen ran manually without CACHE_GEN_VERSION.
Andriy Grytsenko [Tue, 4 Nov 2014 12:07:59 +0000 (14:07 +0200)] 
Fix crash when menu-cache-gen ran manually without CACHE_GEN_VERSION.

4 years agoFix crash on generating menu with both tags <DefaultAppDirs/> and <KDELegacyDirs...
Andriy Grytsenko [Mon, 3 Nov 2014 23:08:29 +0000 (01:08 +0200)] 
Fix crash on generating menu with both tags <DefaultAppDirs/> and <KDELegacyDirs/> present.

4 years agoRelease 1.0.0. 1.0.0
Andriy Grytsenko [Thu, 23 Oct 2014 13:09:24 +0000 (16:09 +0300)] 
Release 1.0.0.

4 years agoYet one more fix in docs/reference/libmenu-cache/Makefile.am with DISTCLEANFILES.
Andriy Grytsenko [Thu, 23 Oct 2014 13:05:27 +0000 (16:05 +0300)] 
Yet one more fix in docs/reference/libmenu-cache/Makefile.am with DISTCLEANFILES.

5 years agoA little code optimization: instead of 'b=FALSE; if(a) b=TRUE' use just 'b=a'.
Andriy Grytsenko [Sat, 11 Oct 2014 09:39:09 +0000 (12:39 +0300)] 
A little code optimization: instead of 'b=FALSE; if(a) b=TRUE' use just 'b=a'.

5 years agoFix over 80a42ceedd4c84b015e8de6dc1473e6829f13d35: it depends on automake setup.
Andriy Grytsenko [Sat, 11 Oct 2014 09:35:03 +0000 (12:35 +0300)] 
Fix over 80a42ceedd4c84b015e8de6dc1473e6829f13d35: it depends on automake setup.

5 years agoFix compilation warnings after 379ac357da3ae5c544b562e42b6314c7275d2013.
Andriy Grytsenko [Sat, 11 Oct 2014 09:32:47 +0000 (12:32 +0300)] 
Fix compilation warnings after 379ac357da3ae5c544b562e42b6314c7275d2013.

5 years agoFix DISTCLEANFILES in docs - generated files should be cleaned.
Andriy Grytsenko [Fri, 10 Oct 2014 22:32:16 +0000 (01:32 +0300)] 
Fix DISTCLEANFILES in docs - generated files should be cleaned.

5 years agoAdd Log Domain "Menu-Cache" for better library logging messages.
Andriy Grytsenko [Fri, 10 Oct 2014 19:52:31 +0000 (22:52 +0300)] 
Add Log Domain "Menu-Cache" for better library logging messages.

5 years agoFixed bug when cache was not updated while it should.
Andriy Grytsenko [Thu, 9 Oct 2014 20:03:32 +0000 (23:03 +0300)] 
Fixed bug when cache was not updated while it should.

Currently it checks if modify time for directory is more recent than modify time
for cache and that may not always be true - some .desktop entry might be just
changed by update and that will lead to falsed cache contents.
To avoid that problem the menu-cached should always fill cache from existing
file if it exists and schedule its regeneration after that.

5 years agoPre-release: 1.0.0-rc1. 1.0.0-rc1
Andriy Grytsenko [Sun, 28 Sep 2014 17:09:39 +0000 (20:09 +0300)] 
Pre-release: 1.0.0-rc1.

5 years agoAdd AC_CONFIG_MACRO_DIR to configure.ac and ACLOCAL_AMFLAGS to Makefile.am
Andriy Grytsenko [Sun, 28 Sep 2014 16:34:25 +0000 (19:34 +0300)] 
Add AC_CONFIG_MACRO_DIR to configure.ac and ACLOCAL_AMFLAGS to Makefile.am

Some builders may fail without this.

5 years agoUpdate copyright missing in commit 8907b518d05260cb2c20e22715caf09754820e16
Andriy Grytsenko [Sun, 28 Sep 2014 15:50:08 +0000 (18:50 +0300)] 
Update copyright missing in commit 8907b518d05260cb2c20e22715caf09754820e16

5 years agoFix "out-of-tree" build (e.g. make distcheck).
Andriy Grytsenko [Sun, 28 Sep 2014 15:15:52 +0000 (18:15 +0300)] 
Fix "out-of-tree" build (e.g. make distcheck).

5 years agoFix parallel build in docs/ directory - workaround on gtk-doc.make.
Andriy Grytsenko [Sun, 28 Sep 2014 15:14:29 +0000 (18:14 +0300)] 
Fix parallel build in docs/ directory - workaround on gtk-doc.make.

5 years agoUpdate copyrights in libmenu-cache and menu-cached sources.
Andriy Grytsenko [Sun, 28 Sep 2014 09:38:35 +0000 (12:38 +0300)] 
Update copyrights in libmenu-cache and menu-cached sources.

5 years agoReplace INCLUDES statement with AM_CPPFLAGS as first one is deprecated for Automake.
Andriy Grytsenko [Sun, 28 Sep 2014 08:55:06 +0000 (11:55 +0300)] 
Replace INCLUDES statement with AM_CPPFLAGS as first one is deprecated for Automake.

5 years ago[SF#460]Fix handling of newline chars in the desktop entry file.
Andriy Grytsenko [Sat, 27 Sep 2014 15:35:51 +0000 (18:35 +0300)] 
[SF#460]Fix handling of newline chars in the desktop entry file.

5 years agoNew APIs: menu_cache_list_all_for_category(), menu_cache_list_all_for_keyword().
Andriy Grytsenko [Sat, 27 Sep 2014 10:32:51 +0000 (13:32 +0300)] 
New APIs: menu_cache_list_all_for_category(), menu_cache_list_all_for_keyword().

Those APIs will be very useful for applications search in panel or for
selecting application such as FileManager by category.

5 years agoMake menu_cache_lookup() faster (do not load cache immediately but on idle).
Andriy Grytsenko [Sat, 27 Sep 2014 01:28:03 +0000 (04:28 +0300)] 
Make menu_cache_lookup() faster (do not load cache immediately but on idle).

Also eliminate secondary cache reload in menu_cache_lookup_sync() - server responce
in such case will be ahead of idle reload (since main thread is in wait ATM).

5 years agoRemove empty unused variables from Makefile.am files.
Andriy Grytsenko [Sat, 27 Sep 2014 01:07:33 +0000 (04:07 +0300)] 
Remove empty unused variables from Makefile.am files.

5 years agoAdd new API menu_cache_app_get_categories() to access list of categories.
Andriy Grytsenko [Fri, 26 Sep 2014 19:14:04 +0000 (22:14 +0300)] 
Add new API menu_cache_app_get_categories() to access list of categories.

5 years agoMake menu_cache_app_get_working_dir() actually work.
Andriy Grytsenko [Fri, 26 Sep 2014 19:10:54 +0000 (22:10 +0300)] 
Make menu_cache_app_get_working_dir() actually work.

That API was there but it was never used because cache didn't contain the data.

5 years agoCorrectly test for TryExec, the g_find_program_in_path() should be used.
Andriy Grytsenko [Fri, 26 Sep 2014 18:23:24 +0000 (21:23 +0300)] 
Correctly test for TryExec, the g_find_program_in_path() should be used.

5 years agoCheck for NoDisplay flag for dirs in libmenu-cache when got cache v.1.1.
Andriy Grytsenko [Fri, 26 Sep 2014 18:05:58 +0000 (21:05 +0300)] 
Check for NoDisplay flag for dirs in libmenu-cache when got cache v.1.1.

v.1.2 already has it checked but v.1.1 needs that check because
it might be flagged to show hidden directories so generator ignored it.

5 years agoUse TryExec field from menu cache to check existance of file.
Andriy Grytsenko [Fri, 26 Sep 2014 17:44:54 +0000 (20:44 +0300)] 
Use TryExec field from menu cache to check existance of file.

It should be checked in menu_cache_app_get_is_visible().

5 years agoFix crash in menu_cache_item_get_file_dirname() for a non-existent entry file.
Andriy Grytsenko [Fri, 26 Sep 2014 15:49:47 +0000 (18:49 +0300)] 
Fix crash in menu_cache_item_get_file_dirname() for a non-existent entry file.

5 years agoFix incorrect write_app_extra() return and missing include in menu-compose.c.
Andriy Grytsenko [Fri, 26 Sep 2014 15:31:18 +0000 (18:31 +0300)] 
Fix incorrect write_app_extra() return and missing include in menu-compose.c.

5 years agoSupport cache version 1.2 by menu-cached and libmenu-cache.
Andriy Grytsenko [Fri, 26 Sep 2014 15:09:03 +0000 (18:09 +0300)] 
Support cache version 1.2 by menu-cached and libmenu-cache.

No APIs to work with new MenuCacheApp data is added yet.

5 years agoReplace g_file_query_exists() with g_file_test() in menu-cached as faster one.
Andriy Grytsenko [Fri, 26 Sep 2014 15:07:30 +0000 (18:07 +0300)] 
Replace g_file_query_exists() with g_file_test() in menu-cached as faster one.

5 years agomenu-cache-gen: add support for next cache file version (1.2).
Andriy Grytsenko [Thu, 25 Sep 2014 19:50:11 +0000 (22:50 +0300)] 
menu-cache-gen: add support for next cache file version (1.2).

It supports now in cache contents:
- hidden directories (NoDisplay or empty);
- the Categories key;
- the TryExec key;
- the Keywords key.

5 years agoRelease 0.7.0. 0.7.0
Andriy Grytsenko [Sat, 6 Sep 2014 16:26:28 +0000 (19:26 +0300)] 
Release 0.7.0.

5 years agoautogen.sh: do not do configure until $DOCONGIGURE is set to non-empty
Andriy Grytsenko [Fri, 5 Sep 2014 09:28:59 +0000 (12:28 +0300)] 
autogen.sh: do not do configure until $DOCONGIGURE is set to non-empty

Run configure in autogen.sh isn't an expected behavior and some
automatic builds depend on it so doing configure twice in not good.

5 years agomenu-cache-gen: don't fail on improper menu sctructure when verbose=0.
Andriy Grytsenko [Thu, 4 Sep 2014 12:36:17 +0000 (15:36 +0300)] 
menu-cache-gen: don't fail on improper menu sctructure when verbose=0.

When libmenu-cache starts menu-cached it goes into daemon mode and therefore
any problems will be shown to nobody. It should start the generator in the
"fail-proof" mode instead and enter verbose mode only when started manually.

5 years agoBe more verbose on file loading failures. May be better not fail at all?
Andriy Grytsenko [Thu, 4 Sep 2014 02:06:51 +0000 (05:06 +0300)] 
Be more verbose on file loading failures. May be better not fail at all?

5 years agomenu-cache-gen: don't fail if <MergeFile> file isn't found, just skip it.
Andriy Grytsenko [Thu, 4 Sep 2014 01:00:55 +0000 (04:00 +0300)] 
menu-cache-gen: don't fail if <MergeFile> file isn't found, just skip it.

5 years agoFix menu-cached crash after menu-cache-gen failure.
Andriy Grytsenko [Thu, 4 Sep 2014 00:58:39 +0000 (03:58 +0300)] 
Fix menu-cached crash after menu-cache-gen failure.

5 years agoHandles menu-cached failures more gracefully in libmenu-cache.
Andriy Grytsenko [Thu, 4 Sep 2014 00:55:01 +0000 (03:55 +0300)] 
Handles menu-cached failures more gracefully in libmenu-cache.

1) fixed incorrect logic for restart of connection;
2) added 1 second delay before restart.

5 years agoAdd a parameter for menu-cached to specify socket path.
Andriy Grytsenko [Thu, 4 Sep 2014 00:50:10 +0000 (03:50 +0300)] 
Add a parameter for menu-cached to specify socket path.

5 years agoFix unrequested empty directories in default mode.
Andriy Grytsenko [Wed, 3 Sep 2014 19:58:45 +0000 (22:58 +0300)] 
Fix unrequested empty directories in default mode.

5 years agoFix support for <Move> tag - it should move not into <New> but to <New> instead.
Andriy Grytsenko [Wed, 3 Sep 2014 19:06:51 +0000 (22:06 +0300)] 
Fix support for <Move> tag - it should move not into <New> but to <New> instead.

I.e. <New> is not folder where <Old> is moved but folder where items of <Old>
should be moved. That was not correct before.

5 years agodebian: add libfm-dev into build dependencies.
Andriy Grytsenko [Tue, 2 Sep 2014 11:53:24 +0000 (14:53 +0300)] 
debian: add libfm-dev into build dependencies.

5 years agodebian: dh-autoreconf was missing in debian/control file.
Andriy Grytsenko [Mon, 1 Sep 2014 01:55:47 +0000 (04:55 +0300)] 
debian: dh-autoreconf was missing in debian/control file.

5 years agoFix './configure --help' formatting and update NEWS file.
Andriy Grytsenko [Sun, 31 Aug 2014 18:01:12 +0000 (21:01 +0300)] 
Fix './configure --help' formatting and update NEWS file.

5 years agoMerge branch 'new-gen'
Andriy Grytsenko [Sun, 31 Aug 2014 17:11:07 +0000 (20:11 +0300)] 
Merge branch 'new-gen'

Conflicts:
configure.ac

5 years agoUpdate output of 'menu-cache-gen -h' command.
Andriy Grytsenko [Sun, 31 Aug 2014 15:41:36 +0000 (18:41 +0300)] 
Update output of 'menu-cache-gen -h' command.

5 years agomenu-cache-gen: implement inline_alias attribute support.
Andriy Grytsenko [Sun, 31 Aug 2014 15:34:48 +0000 (18:34 +0300)] 
menu-cache-gen: implement inline_alias attribute support.

The inline_header is still unsupported because it is unclear hot to represent
that label in the visible menu. Probably that might be done later.

5 years agoTake show_empty attribute into consideration in _stage2().
Andriy Grytsenko [Sun, 31 Aug 2014 15:22:11 +0000 (18:22 +0300)] 
Take show_empty attribute into consideration in _stage2().

5 years agoAdd option --verbose for menu-cache-gen (quiet by default, max 3 verbosity level)
Andriy Grytsenko [Sun, 31 Aug 2014 15:13:18 +0000 (18:13 +0300)] 
Add option --verbose for menu-cache-gen (quiet by default, max 3 verbosity level)

5 years agoSupport NoDisplay in <Directory> files (menu-cache-gen) to hide folder.
Andriy Grytsenko [Sat, 30 Aug 2014 23:24:58 +0000 (02:24 +0300)] 
Support NoDisplay in <Directory> files (menu-cache-gen) to hide folder.

5 years agoUpdate AUTHORS and README files.
Andriy Grytsenko [Sat, 30 Aug 2014 21:38:41 +0000 (00:38 +0300)] 
Update AUTHORS and README files.

5 years agoFixing memory problems in menu-cache-gen.
Andriy Grytsenko [Sat, 30 Aug 2014 21:13:47 +0000 (00:13 +0300)] 
Fixing memory problems in menu-cache-gen.

5 years agoPass LegacyDir prefix to menu-cache-gen composer using XML comment.
Andriy Grytsenko [Sat, 30 Aug 2014 18:25:54 +0000 (21:25 +0300)] 
Pass LegacyDir prefix to menu-cache-gen composer using XML comment.

5 years agomenu-cache-gen: add support for <KDELegacyDirs> tag.
Andriy Grytsenko [Sat, 30 Aug 2014 17:47:41 +0000 (20:47 +0300)] 
menu-cache-gen: add support for <KDELegacyDirs> tag.

Also fixed order of directories in the merged XML.

5 years agoImplement support for 'inline' attribute of <Menuname> tag in menu-cache-gen.
Andriy Grytsenko [Sat, 30 Aug 2014 16:57:46 +0000 (19:57 +0300)] 
Implement support for 'inline' attribute of <Menuname> tag in menu-cache-gen.

5 years agoFix check for duplicates in menu-cache-gen merging.
Andriy Grytsenko [Sat, 30 Aug 2014 16:32:59 +0000 (19:32 +0300)] 
Fix check for duplicates in menu-cache-gen merging.

5 years agoAdd support into menu-cache-gen for <LegacyDir> tag.
Andriy Grytsenko [Sat, 30 Aug 2014 16:15:02 +0000 (19:15 +0300)] 
Add support into menu-cache-gen for <LegacyDir> tag.

5 years agoFix few parsing issues in ragards to desktop menu specifications.
Andriy Grytsenko [Sat, 30 Aug 2014 14:39:09 +0000 (17:39 +0300)] 
Fix few parsing issues in ragards to desktop menu specifications.

5 years agolibmenu-cache: send languages list to menu-cache-gen instead of single lang code.
Andriy Grytsenko [Sat, 30 Aug 2014 12:28:10 +0000 (15:28 +0300)] 
libmenu-cache: send languages list to menu-cache-gen instead of single lang code.

That will allow using few languages at once for better translation.

5 years agoSupport for <Move> tag in menu-cache-gen.
Andriy Grytsenko [Sat, 30 Aug 2014 11:59:23 +0000 (14:59 +0300)] 
Support for <Move> tag in menu-cache-gen.

5 years agoCheck for mandatory <Name> for <Menu> tags.
Andriy Grytsenko [Sat, 30 Aug 2014 10:26:14 +0000 (13:26 +0300)] 
Check for mandatory <Name> for <Menu> tags.