Hi, So if someone uses just some parts of the components (but not the whole Lxde desktop), or another distro which does not have "lubuntu" in /etc/xdg this might create issues ?
ie : I use Openbox only, but with openbox-menu which uses libmenucache to get the menu entries: http://mimasgpc.free.fr/openbox-menu_en.html "No need to reinvent the wheel : I will use menu-cache from LXDE project for the menu generation." and in my distribution, PCLinuxOS, the file /etc/xdg/.../menus/lxde-applications.menu exists only for full Lxde installs. So here the file in use is /etc/xdg/menus/applications.menu I just say... in case it would have been an idea to implement your method... Regards, Mélodie On Fri, 30 Mar 2012 16:37:36 +0200 Axel FILMORE <[email protected]> wrote: > 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 -- Mélodie <[email protected]> ------------------------------------------------------------------------------ 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
