Page 1 of 3

Package request for Openbox Menu Generator

Posted: Mon Jun 11, 2018 1:12 am
by donpine
Could someone check on "obmenu-generator"? I've tried openbox-menu without any success; it fails with "File applications.menu doesn't exist. Can't create menu." The docs and man page don't give me enough clue.

I found obmenu-generator here: https://sparkylinux.org/wiki/doku.php/obmenu_generator . It works super in creating a dynamic openbox menu! (I installed via git following the directions on that page.)

Info here: https://trizenx.blogspot.com/2012/02/ob ... rator.html

I found a .deb package here:
https://software.opensuse.org/download. ... -generator

Re: Package request for Openbox Menu Generator

Posted: Thu Feb 14, 2019 3:35 am
by aledie
What was the conclusion regarding this one for the testrepo?

https://github.com/trizen/obmenu-generator

Sparky has a Deb for the latest 0.85 version already in their repo (newer than old Suse's 0.66 deb package mentioned above), can this be used?:
https://sparkylinux.org/repo/pool/main/ ... generator/

Re: Package request for Openbox Menu Generator

Posted: Thu Feb 14, 2019 1:04 pm
by Kruppt
Make a soft link to the xfce-applications.menu like so:

Code: Select all

sudo ln -s /etc/xdg/menus/xfce-applications.menu /etc/xdg/menus/applications.menu
and see if that will work.

Re: Package request for Openbox Menu Generator

Posted: Fri Feb 15, 2019 8:03 am
by aledie
@Kruppt, it certainly would work as an item "Applications" inside openbox menu. I did it similarly before linking lxde-applications.menu (after install lxmenu-data openbox-menu) in OB on top of antiX, or used lxpanel instead of tint2.
Above Gen app however completely replaces obmenu with a dynamic iconified lxmenu looking thing. Anyway, right, there are different ways.

Re: Package request for Openbox Menu Generator

Posted: Fri Feb 15, 2019 2:32 pm
by Kruppt
The Sparky Linux deb package is tailored to their distro so I do not think it advantageous to use it.
If you extract the deb package and look at the perl schema files you will see that they are
customized to their specific distro. Naturally you could remove the schema files that do not pertain
and edit the schema.pl file to your liking but the git version is easy enough to install.
Install git if not already installed,
and install the depends:

Code: Select all

* Required dependencies:

    - perl>=5.14.0
    - gtk2-perl ([Gtk2](https://metacpan.org/pod/Gtk2))
    - perl-data-dump ([Data::Dump](https://metacpan.org/pod/Data::Dump))
    - perl-linux-desktopfiles>=0.25 ([Linux::DesktopFiles](https://metacpan.org/pod/Linux::DesktopFiles))

* Optional dependencies:
    - perl-file-desktopentry ([File::DesktopEntry](https://metacpan.org/pod/File::DesktopEntry))
Open a term and cd into the directory you usually download to
and run:

Code: Select all

git clone https://github.com/trizen/obmenu-generator
Then open a filemanager and drill into the obmenu-generator directory
and copy the obmenu-generator file that resides within the dir to /opt/bin or /usr/local/bin.
Run below to create a config dir:

Code: Select all

mkdir -p ~/.config/obmenu-generator 
Then copy the schema.pl file to this ~/.config/obmenu-generator directory.
If you open the schema.pl file in a text editor and look at the syntax you will see how you can
customized the menu to your liking, then run the perl script:

Code: Select all

        obmenu-generator -p -i     # dynamic menu with icons
        obmenu-generator -s -c     # static menu without icons
to generate your menu.

Re: Package request for Openbox Menu Generator

Posted: Sun Feb 17, 2019 5:56 am
by aledie
@Kruppt: thanks the above info

Re: Package request for Openbox Menu Generator

Posted: Fri May 31, 2019 7:56 am
by peter_li
gtk2-perl ([Gtk2](https://metacpan.org/pod/Gtk2)) is not installable on my system not with cpanm Gtk2 nor with perl -MCPAN -e shell and install Gtk2.

Please help.

Re: Package request for Openbox Menu Generator

Posted: Fri May 31, 2019 8:41 am
by gosia
Hallo Peter,

I installed obmenu-generator like this:

Code: Select all

cd ~/work # any directory
git clone git://github.com/trizen/obmenu-generator
sudo cp obmenu-generator/obmenu-generator /usr/bin
sudo cp -r obmenu-generator/schema.pl ~/.config/obmenu-generator
sudo cpanm Linux::DesktopFiles
sudo cpanm Data::Dump
sudo chmod 777 /usr/bin/obmenu-generator
viele Grüße gosia

Re: Package request for Openbox Menu Generator

Posted: Fri May 31, 2019 8:45 am
by manyroads
peter_li wrote: Fri May 31, 2019 7:56 am gtk2-perl ([Gtk2](https://metacpan.org/pod/Gtk2)) is not installable on my system not with cpanm Gtk2 nor with perl -MCPAN -e shell and install Gtk2.

Please help.
Not having any idea what you are running, makes recommendation difficult.

Here's a really long thread devoted to build OB on MX (a long how-to, plus a download)
viewtopic.php?f=82&t=49858#p498200

Re: Package request for Openbox Menu Generator

Posted: Fri May 31, 2019 9:36 am
by peter_li
I have running MX Linux 18.3. In cpanm the build.log states:

Code: Select all

Creating stock items POD...
Generating POD...
Can't locate build/doc.pl in @INC (@INC contains: blib/lib blib/arch /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /$
Loaded 9 extra types from doctypes
Loaded 8 extra types from /usr/lib/x86_64-linux-gnu/perl5/5.24/Glib/Install/doctypes
Loaded 2 extra types from /usr/lib/x86_64-linux-gnu/perl5/5.24/Pango/Install/doctypes
Loaded 7 extra types from /usr/lib/x86_64-linux-gnu/perl5/5.24/Cairo/Install/doctypes
Makefile:3036: die Regel für Ziel „build/podindex“ scheiterte
make: *** [build/podindex] Fehler 2
-> FAIL Installing Gtk2 failed. See /root/.cpanm/work/1559299506.31286/build.log for details. Retry with --force to force install it.
I have no idea whats this build/doc.pl or build/podindex means.
The --force switch seems to be ignored.

Your link points to a thread relating your Openbox Re-spin but I wish to stay at the official distro for support reasons.

By the way:
Would you please be so kindly and inform me how you managed the upload of a distro sized iso? We in germany have only fast download but slow upload speeds I think.