I had the same issue in my stand alone gtk-run, the quick and dirty fix
I found was to set the full path of the menu :
/* get all apps */
menu_cache =
menu_cache_lookup_sync("/etc/xdg/lubuntu/menus/lxde-applications.menu");
if( menu_cache )
{
app_list = (GSList*)menu_cache_list_all_apps(menu_cache);
reload_notify_id = menu_cache_add_reload_notify(menu_cache,
(GFunc) reload_apps, NULL);
} else {
printf ("error\n");
}
This is not a solution, just a quick fix to have it running on my
system, it seems that the full
path is needed..... I don't know why...
https://github.com/afilmore/gtk-run
On 30/03/2012 07:42, Vadim Ushakov wrote:
> When a panel has menu applet, the applet initializes menu-cache in
> right way and it works fine. When there is no menu applet, gtk_run()
> gets an "empty" cache object from menu_cache_lookup(), then calls
> menu_cache_list_all_apps(), and the program crashes at dereferencing
> null pointer at list_app_in_dir().
>
> I tried to use menu_cache_lookup_sync() instead of
> menu_cache_lookup(), but the program simply hangs forever at this
> call. So I just added line 'menu_cache_reload(menu_cache);' to work
> around the problem, but it does not look like a right solution.
--
Axel FILMORE
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Lxde-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lxde-list