Could you reply-all rather than starting a new thread for each mail
please, it helps keep things together.

On 2018/11/20 08:43, Heppler, J. Scott wrote:
> Stuart Henderson observed:
> > - I can't see how to get it to do much of use. --simple with
> > a list I generate myself does work, but pmenu dies with
> > "KeyError: 'Name_markup'", xdg segfaults, ...
> 
> 
> Using jgmenu, x11/menu-cache and x11/gnome-menus, I am able to
> generate this freedesktop spec menu in openbox:
> 
> http://daemonforums.org/showpost.php?p=65468&postcount=1
> 
> I specified csv-command = lx in ~/.config/jgmenu/jgmenurc and invoke
> jgmenu_run via keyboard/mouse entries in ~/.config/openbox/rc.xml.  I
> essentially replaced <root-menu> with <jgmenu_run>.
> 
> I agree that it has little value with manually generated menus.  I think
> its value is with automatic menu generation.
> 
> 
> -- 
> J. Scott Heppler

Do you get anything useful from pmenu or xdg? I just get this,

$ /usr/local/libexec/jgmenu/jgmenu-pmenu.py
jgmenu,^tag(pmenu)
Traceback (most recent call last):
  File "/usr/local/libexec/jgmenu/jgmenu-pmenu.py", line 503, in <module>
    main()
  File "/usr/local/libexec/jgmenu/jgmenu-pmenu.py", line 500, in main
    create_menu(append_file, prepend_file)
  File "/usr/local/libexec/jgmenu/jgmenu-pmenu.py", line 437, in create_menu
    print(category["Name_markup"] + ",^checkout(" + category["Name"] + ")," + 
icon)
KeyError: 'Name_markup'

$ /usr/local/libexec/jgmenu/jgmenu-xdg
Segmentation fault (core dumped)

jgmenu-ff-bookmarks.sh does mostly work (as long as Firefox isn't running
at the time) but has unportable shell syntax:

/usr/local/libexec/jgmenu/jgmenu-ff-bookmarks.sh[55]: test: --help: unexpected 
operator/operand

"jgmenu init" tries to use bad tar(1) flags:

$ jgmenu init
Backing up config files...
tar: unknown option -- T
usage: tar {crtux}[014578befHhjLmNOoPpqsvwXZz]
           [blocking-factor | archive | replstr] [-C directory] [-I file]
           [file ...]
       tar {-crtux} [-014578eHhjLmNOoPpqvwXZz] [-b blocking-factor]
           [-C directory] [-f archive] [-I file] [-s replstr] [file ...]
gzip: /home/sthen/.config/jgmenu/backup/20181120225730.tar: No such file or 
directory
/home/sthen/.config/jgmenu/backup/20181120225730.tar
info: creating config file 'jgmenurc'
Run 'jgmenu init -h' for usage message
Run 'jgmenu init -i' to enter interactive mode

Oh, and I have to kill my normally-running xsettingsd otherwise I get this

info: using monitor '2'
info: got font from xsettings
info: set font to ''
info: got icon theme from xsettings
info: set icon theme to ''
fatal: icon theme has to be set before icon_load()
jgmenu(41719) in free(): use after free 0x549eb9eca00
Abort trap (core dumped) 

After doing this lx works (as long as the gnome-menus package is
installed), and ob works (as long as menu-cache is installed).

Rather than including a bunch of things some of which work (at
least in some conditions) and some which are broken, it would be
better to either fix non-working things, or if that's not possible
then just disable them. As it is, it's not really in good shape
for adding to ports yet.

btw from your daemonforums post, you mention adding desktop files
for various cli apps and "If this works, the *desktop entries could
be submitted to [email protected]" - these are mostly things where
the dependency on desktop-file-utils (chaining to glib2) needed for
this would not really be wanted.

Reply via email to