Page 1 of 1

Fbmenugen (perl script) doesn't create icons in Fluxbox

Posted: 14. Apr 2024, 16:12
by Pai Mei
Hi everyone!
I'm using Salix 15 Xfce, and installed Fluxbox 1.37 using Gslapt, and fbmenugen 0.88 using sbopkg, with all dependencies (perl-data-dump perl-linux-desktop-files perl-gtk2 perl-Gtk3 perl-file-desktopentry). But when I run in a terminal the command to generate a menu with icons:

Code: Select all

$ fbmenugen -i
it returns the error:

Code: Select all

:: Regenerating the cache DB...
Required key missing in Desktop Entry: Name at /usr/bin/fbmenugen line 526.
Required key missing in Desktop Entry: Type at /usr/bin/fbmenugen line 526.
Too late to run INIT block at /usr/lib64/perl5/vendor_perl/Glib/Object/Introspection.pm line 257.
:: A new menu has been successfully generated!
And the menu is generated without icons.

So, I looked in the fbmenugen code (as seen here https://gitlab.com/trizen/fbmenugen/-/b ... type=heads), but I can't figure what is wrong, since I don't know perl language.

Any hints?

Thanks in advance!

Re: Fbmenugen (perl script) doesn't create icons in Fluxbox

Posted: 15. Apr 2024, 11:55
by gapan
I don't know about fbmenugen, but you can try xdgmenumaker.

Re: Fbmenugen (perl script) doesn't create icons in Fluxbox

Posted: 1. Dec 2024, 21:22
by Pai Mei
Hi everyone sorry to necrobump this topic, but I find some information in the topic.

The fbmenugen script really creates the icons (sorry by the error above) and place them in /home/user/.cache/fbmenugen/icons/ and modifies the file /home/user/.fluxbox/start with the correct path to the icons:

Code: Select all

## Menu generated with fbmenugen v0.88
#

[begin] (Fluxbox)
[encoding] {UTF-8}
  [exec] (Arqchive Manager) {xdg-open .} </home/user/.cache/fbmenugen/icons/b07c7ed44e52bbbb7f9e38497d7592f2.png>
  [exec] (Terminal) {xfce4-terminal} </home/user/.cache/fbmenugen/icons/207bae381b410cc058ab6fcc2b5bc748.png>
  [exec] (Web Browser) {xdg-open http://} </home/user/.cache/fbmenugen/icons/544e6bed20e3f9b198b4fea436b20c1d.png>
  ...
and so on.

But the Fluxbox windows menu and submenus don't show the icons. Don't know why.

There is also a folder with .xpm icons in /home/user/.fluxbox/icons/ but it doesn't show them.

I tried the option in Advanced Settings -> Fluxbox -> Configure -> Tabs Options -> Show Images but it doesn't work.

So anyone can give any hint in the problem? I'm thinking that the problem is an option in fluxbox that I don't know.

Thanks in advance!

Re: Fbmenugen (perl script) doesn't create icons in Fluxbox

Posted: 2. Dec 2024, 14:23
by djemos
1. Default fluxbox package in slackware show only xpm icons in menus.
run this script convert-to-xpm.sh in user home to convert png icons in ~/.cache/fbmenugen/icons/ to xpm

Code: Select all

#/bin/bash
FILES=~/.cache/fbmenugen/icons/*
for f in $FILES
do
icon=${f%.*}
echo $icon
convert $icon.png $icon.xpm
done
sed -i "s/png/xpm/g"  ~.fluxbox/menu
echo "Done..."

2. To use png icons in menus compile fluxbox with --enable-imlib2
Download all from here
Edit fluxbox.SlackBuild and add --enable-imlib2 \

Code: Select all

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --mandir=/usr/man \
  --docdir=/usr/doc/fluxbox-$VERSION \
  --enable-imlib2 \ 
  --enable-xinerama \
  --enable-slit \
  --enable-nls \
  --enable-timedcache \
  --enable-xext \
  --build=$ARCH-slackware-linux
Build the package with fakeroot sh fluxbox.SlackBuild
and reinstall the package

or download the compiled fluxbox package with imlib2 from here