Package request for Openbox Menu Generator

Message
Author
donpine
Posts: 11
Joined: Thu May 03, 2018 7:51 pm

Package request for Openbox Menu Generator

#1 Post 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
MX-19, MX-18, AntiX-19, and Debian on my bevy of Gateway laptops.

User avatar
aledie
Posts: 188
Joined: Thu Sep 13, 2018 2:06 pm

Re: Package request for Openbox Menu Generator

#2 Post 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/
MX-18 (x64): HP 8460p, i5-2540M, 8GB RAM, 256GB SSD, HD3000

User avatar
Kruppt
Posts: 18
Joined: Tue Jul 29, 2008 11:22 am

Re: Package request for Openbox Menu Generator

#3 Post 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.

User avatar
aledie
Posts: 188
Joined: Thu Sep 13, 2018 2:06 pm

Re: Package request for Openbox Menu Generator

#4 Post 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.
MX-18 (x64): HP 8460p, i5-2540M, 8GB RAM, 256GB SSD, HD3000

User avatar
Kruppt
Posts: 18
Joined: Tue Jul 29, 2008 11:22 am

Re: Package request for Openbox Menu Generator

#5 Post 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.

User avatar
aledie
Posts: 188
Joined: Thu Sep 13, 2018 2:06 pm

Re: Package request for Openbox Menu Generator

#6 Post by aledie »

@Kruppt: thanks the above info
MX-18 (x64): HP 8460p, i5-2540M, 8GB RAM, 256GB SSD, HD3000

peter_li
Posts: 67
Joined: Sun Apr 28, 2019 3:57 am

Re: Package request for Openbox Menu Generator

#7 Post 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.
DELL Latitude E6510 i5, 4 threads with Kernel 5.10, MX-21 Mate and Windows 10.
Deutsches Wiki: https://wiki.mxlinuxusers.de/wiki/Hauptseite unter Verwendung von MediaWiki

User avatar
gosia
Posts: 938
Joined: Sun Apr 28, 2019 3:43 pm

Re: Package request for Openbox Menu Generator

#8 Post 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

User avatar
manyroads
Posts: 2603
Joined: Sat Jun 30, 2018 6:33 pm

Re: Package request for Openbox Menu Generator

#9 Post 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
Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

peter_li
Posts: 67
Joined: Sun Apr 28, 2019 3:57 am

Re: Package request for Openbox Menu Generator

#10 Post 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.
DELL Latitude E6510 i5, 4 threads with Kernel 5.10, MX-21 Mate and Windows 10.
Deutsches Wiki: https://wiki.mxlinuxusers.de/wiki/Hauptseite unter Verwendung von MediaWiki

Locked

Return to “Package Requests/Status - MX 17/18”