Re: fvwm-menu-desktop locale strangeness

2014-04-17 Thread Dominique Michel
Le Sun, 13 Apr 2014 20:13:45 +0200,
Thomas Funk t.f...@web.de a écrit :

 Am 13.04.2014 17:31, schrieb Dominique Michel:
  Hi,
  
  with fvwm-crystal, I get an issue with a localized xdg menu. If I
  launch fvwm as a Xephyr session and use its default configuration
  (no config file), I get a very simple menu where it is a Desktop
  Menu. If I click on it, I get an applications menu with several
  menus in it:
  
  Fvwm Applications
  Suse Applications
  Xfce Applications
  Xfce Settings Manager
  
  which correspond to what I have in /etc/xdg/menus. The Fvwm
  Applications menu is my localized menu. If I browse it, only parts
  of it are localized, and other parts are not when the localization
  exist in /usr/share/directories.
  
  I made the following function:
  
  DestroyMenu FvwmMenu
  AddToMenu FvwmMenu
  + DynamicPopupAction PipeRead 'fvwm-menu-desktop \
  --desktop fvwm-applications \
  --enable-mini-icons \
  --mini-icon-dir $[FVWM_USERDIR]/icons/fvwm-desktop'
  
 
 Try this:
 DestroyMenu FvwmMenu
 AddToMenu FvwmMenu
 + DynamicPopupAction PipeRead 'fvwm-menu-desktop \
 --desktop fvwm \
 --type applications \
 --enable-mini-icons \
 --mini-icon-dir $[FVWM_USERDIR]/icons/fvwm-desktop'

I get: Warning: Arg --type is obsolete and ignored, but the menu work
fine. I only get the fvwm menu and the localization is coKey A A
$[Mod1] Menu FvwmMenurrect.

Do you know if it is possible to get ride of the Regenerate the XDG
menu? 
I find nothing in the doc, so I don't think it is possible without a
awk or sed function.

 
 
 because --desktop defines not the menu name. fvwm-menu-desktop
 assemble the menu name from the desktop type and the menu type.
 
  Key A A $[Mod1] Menu FvwmMenu
  
  With it, I get only the fvwm-applications menu, and it is entirely
  localized (the part which are already done, it's a work in
  progress).
  
  After that, I removed all the files in /etc/xdg/menus but
  fvwm-applications.menu, and after launching fvwm, I get an error
  instead of the menu:
  
  # fvwm-menu-desktop
  Traceback (most recent call last):
File /usr/bin/fvwm-menu-desktop, line 634, in module
  main()
File /usr/bin/fvwm-menu-desktop, line 232, in main
  menulist, desktop_temp = getmenulist(desktop, menu_type)
File /usr/bin/fvwm-menu-desktop, line 400, in getmenulist
  desktop_dict[de_highest].add(menu)
  KeyError: 'xfce'
  
  What is strange is I don't have any xfce key into the menu. I try
  with
 
 Would you please post the output of
 $ fvwm-menu-desktop --version

fvwm-menu-desktop version 2.3.1

 and
 $ fvwm-menu-desktop --get-menus all --verbose

That look OK to me. All is here:
Parameters for creating menu list:
 XDG_MENU_PREFIX:  ''
 --install-prefix: ''
 --desktop:''
 --menu-type:  ''

Start search ...
 found in /home/dom/.config/menus: []
 found in /etc/xdg/menus: ['fvwm-applications.menu',
'yast-settings.menu', 'lxde-applications.menu',
'xfce-applications.menu', 'ggz.menu', 'kde-4-applications.menu',
'gnome-applications.menu', 'suse-applications.menu',
'xfce-settings-manager.menu'] Menu list:
['/etc/xdg/menus/fvwm-applications.menu',
'/etc/xdg/menus/yast-settings.menu',
'/etc/xdg/menus/lxde-applications.menu',
'/etc/xdg/menus/xfce-applications.menu', '/etc/xdg/menus/ggz.menu',
'/etc/xdg/menus/kde-4-applications.menu',
'/etc/xdg/menus/gnome-applications.menu',
'/etc/xdg/menus/suse-applications.menu',
'/etc/xdg/menus/xfce-settings-manager.menu']

 Previous used theme: gnome
 Current used theme: gnome
Create submenu 'FvwmFvwm Applications' from
 '/etc/xdg/menus/fvwm-applications.menu' Create submenu 'FvwmYast
 Settings' from '/etc/xdg/menus/yast-settings.menu' Menu is empty -
 won't be used! Create submenu 'FvwmLxde Applications' from
 '/etc/xdg/menus/lxde-applications.menu' Create submenu 'FvwmXfce
 Applications' from '/etc/xdg/menus/xfce-applications.menu' Create
 submenu 'FvwmGgz' from '/etc/xdg/menus/ggz.menu' Menu is empty - won't
 be used! Create submenu 'FvwmKde 4 Applications' from
 '/etc/xdg/menus/kde-4-applications.menu' Create submenu 'FvwmGnome
 Applications' from '/etc/xdg/menus/gnome-applications.menu' Create
 submenu 'FvwmSuse Applications' from
 '/etc/xdg/menus/suse-applications.menu' Create submenu 'FvwmXfce
 Settings Manager' from
 '/etc/xdg/menus/xfce-settings-manager.menu' 
/etc/xdg/menus/fvwm-applications.menu /etc/xdg/menus/lxde-applications.menu 
/etc/xdg/menus/xfce-applications.menu /etc/xdg/menus/kde-4-applications.menu 
/etc/xdg/menus/gnome-applications.menu /etc/xdg/menus/suse-applications.menu 
/etc/xdg/menus/xfce-settings-manager.menu

Process took 36.1115701199 seconds

 
 whether all menus on place?

Yes, that just that locale issue. It may come from the suse menu that
collide with my fvwm menu. The fvwm menu is using the localisation from
the files in /usr/share/desktop-directories, when the suse menu was
using files in /usr/share/locale. The suse menu with that localization
system just hang fvwm-menu-desktop, 

Re: fvwm-menu-desktop locale strangeness

2014-04-17 Thread Dan.Espen
 Am 13.04.2014 17:31, schrieb Dominique Michel:
 Do you know if it is possible to get ride of the Regenerate the XDG
 menu? 
 I find nothing in the doc, so I don't think it is possible without a
 awk or sed function.

The menu does not update when applications are added,
so there is no option for removing the entry.

-- 
Dan Espen



Re: fvwm-menu-desktop locale strangeness

2014-04-17 Thread Dominique Michel
Le Thu, 17 Apr 2014 09:06:52 -0400,
des...@verizon.net (Dan.Espen) a écrit :

  Am 13.04.2014 17:31, schrieb Dominique Michel:
  Do you know if it is possible to get ride of the Regenerate the XDG
  menu? 
  I find nothing in the doc, so I don't think it is possible without a
  awk or sed function.
 
 The menu does not update when applications are added,
 so there is no option for removing the entry.

It is the same into fvwm-crystal, but the option to recreate it is
into the preferences. I just automatized it, it compare the date of
some files at startup/restart and update the menu when needed.

For now my first concern is to finish my fvwm-applications xdg menu.
About 2/3 is done. Maybe later I will include it in fvwm-crystal in
parallel with its existing menu system, but with another key binding.

Dominique