Jgmenu broken since latest updates jgmenu-4.2.0-1

I don’t use jgmenu all of the time so this appears to have been broken probably since the this one was installed on May 10th.
/var/cache/pacman/pkg/jgmenu-4.2.0-1-x86_64.pkg.tar.zst

Troubleshooting, I removed all of my csv files and there was no menu rendering at all. (just the space under my mouse cursor shown in the screenshot.

Screenshot_2020-05-18_11-23-54

I even uninstalled and then compiled via the github version and got the same thing.

Finally, downgrading back to the previous version worked
[glaw@plex ~]$ sudo pacman -U /var/cache/pacman/pkg/jgmenu-4.1.0-1-x86_64.pkg.tar.zst

For the moment I have backlisted it in pacman
IgnorePkg = jgmenu

Just really a FYI in case anyone else runs into this.

v4.2.0-1 works fine for me.

Do you see any error messages if you upgrade to v4.2.0-1 and try to run it from a terminal?

pkill jgmenu
jgmenu run

EDIT: welcome to the forums!

NO - no errors seen. I tried the “echo test | jgmenu_run” I found elsewhere in the forums (or maybe it was on the github issues) and thats when I get the “spacer” shown in the screenshot.

So I removed the “freeze” and let it upgrade again
glaw@plex ~]$ p -S jgmenu
resolving dependencies…
looking for conflicting packages…

Packages (1) jgmenu-4.2.0-1

Total Installed Size: 0.43 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [--------------------------------------] 100%
(1/1) checking package integrity [--------------------------------------] 100%
(1/1) loading package files [--------------------------------------] 100%
(1/1) checking for file conflicts [--------------------------------------] 100%
(1/1) checking available disk space [--------------------------------------] 100%
:: Processing package changes…
(1/1) upgrading jgmenu [--------------------------------------] 100%
:: Running post-transaction hooks…
(1/3) Arming ConditionNeedsUpdate…
(2/3) Updating icon theme caches…
(3/3) Updating the desktop file MIME type cache…
[glaw@plex ~]$
[glaw@plex ~]$ pkill jgmenu

Then its broke again - these are just my .csv entries

Screenshot_2020-05-18_13-48-12

Post your ~/.config/jgmenu/jgmenurc

Just the basics - everything is commented out except for the positioning and color/opacity

cat jgmenurc |grep -v ^#

menu_margin_x = 30
menu_margin_y = 25
menu_valign = top
color_menu_bg = #000000 80

And just to show that all I am currently getting is the prepend/append :

[glaw@plex jgmenu]$ cat prepend.csv
Terminal,terminator,utilities-terminal
Firefox,firefox,firefox
Chromium,chromium,chromium
File manager,caja,system-file-manager
Geany,geany,geany
GiMP,gimp,gimp
[glaw@plex jgmenu]$ cat append.csv
Exit to prompt,openbox --exit,system-log-out
Suspend,systemctl -i suspend,system-log-out
Reboot,systemctl -i reboot,system-reboot
Poweroff,systemctl -i poweroff,system-shutdown

I can get the openbox menu to display if I set this :
csv_cmd = ob

and as far as jgmenu run :
[glaw@plex jgmenu]$ jgmenu run
info: could not open hooks file ~/.config/jgmenu/hooks
info: color depth=32
info: got font from xsettings
info: set font to ‘sans 11’
info: got icon theme from xsettings
info: set icon theme to ‘ArchLabs-Dark’
info: remove (^checkout(apps-dir-Accessories) as it has no matching tag
info: remove (^checkout(apps-dir-Development) as it has no matching tag
info: remove (^checkout(apps-dir-Education) as it has no matching tag
info: remove (^checkout(apps-dir-Games) as it has no matching tag
info: remove (^checkout(apps-dir-Graphics) as it has no matching tag
info: remove (^checkout(apps-dir-Multimedia) as it has no matching tag
info: remove (^checkout(apps-dir-Internet) as it has no matching tag
info: remove (^checkout(apps-dir-Office) as it has no matching tag
info: remove (^checkout(apps-dir-Other) as it has no matching tag
info: remove (^checkout(apps-dir-Settings) as it has no matching tag
info: remove (^checkout(apps-dir-System) as it has no matching tag
Badness in build_tree() at src/jgmenu.c:1114

After I revert back to the previous version :
[glaw@plex jgmenu]$ jgmenu run
info: color depth=32
info: got font from xsettings
info: set font to ‘sans 11’
info: got icon theme from xsettings
info: set icon theme to ‘ArchLabs-Dark’
info: created 1 symlinks in ~/.cache/jgmenu/icons/

Ok I think you’re possibly onto something with the issue being in jgmenu, let’s see if @malm has something to chime in with. Possibly post an issue on the jgmenu github, he’s quite nice and quick at responding. Just I’m not sure how much he checks around here for updates/questions.

1 Like

I was thinking it might be something with one of the xdg menu files in /etc/xdg/menus/
applications.menu was updated May 3rd - but I am not sure :man_shrugging::man_shrugging::man_shrugging: especially since downgrading fixes the problem.

[glaw@plex menus]$ ls -lart
total 48
-rw-r–r-- 1 root root 3984 Nov 9 2018 lxde-applications.menu
-rw-r–r-- 1 root root 4293 Jul 27 2019 xfce-applications.menu
-rw-r–r-- 1 root root 7579 Mar 11 05:32 gnome-applications.menu
-rw-r–r-- 1 root root 488 Mar 30 01:31 xfce4-screensavers.menu
-rw-r–r-- 1 root root 2255 Apr 12 12:05 xfce-settings-manager.menu
-rw-r–r-- 1 root root 9979 May 3 04:53 applications.menu

You can also post in the BL forum jgmenu thread if you want; he’s on the BL development team, I believe, so he’ll see it for sure there.

1 Like

So you’re volunteering to be our embassador? :crazy_face:

1 Like

Sure; it comes with the badge:

May_1589832543_1600x900.jpg

3 Likes

posted right to the github issues page


since I actually compiled right from source as well and it appears broken as well

1 Like

Hmm… I wonder if it’s a problem with the apps module.
Does it work if you set

csv_cmd=pmenu

What do you get from

jgmenu_run apps
1 Like

Yes - csv_cmd=pmenu
works once I upgrade it back up to the latest version

jgmenu_run apps output :
Terminal,terminator,utilities-terminal
Firefox,firefox,firefox
Chromium,chromium,chromium
File manager,caja,system-file-manager
Geany,geany,geany
GiMP,gimp,gimp

Accessories,^checkout(apps-dir-Accessories),applications-accessories
Development,^checkout(apps-dir-Development),applications-development
Education,^checkout(apps-dir-Education),applications-science
Games,^checkout(apps-dir-Games),applications-games
Graphics,^checkout(apps-dir-Graphics),applications-graphics
Multimedia,^checkout(apps-dir-Multimedia),applications-multimedia
Internet,^checkout(apps-dir-Internet),applications-internet
Office,^checkout(apps-dir-Office),applications-office
Other,^checkout(apps-dir-Other),applications-other
Settings,^checkout(apps-dir-Settings),preferences-desktop
System,^checkout(apps-dir-System),applications-system
Exit to prompt,openbox --exit,system-log-out
Suspend,systemctl -i suspend,system-log-out
Reboot,systemctl -i reboot,system-reboot
Poweroff,systemctl -i poweroff,system-shutdown

Ok. That narrows it down to the apps module. It looks like it prints directories, but not apps.
Were you okay to build from the master brach if I push a fix (once I figure out what’s wrong).
Do you have any “unusual” .desktop files?

Fantastic :+1:

Bug fixed. Thank @geolaw for help. v4.2.1 pushed

1 Like