You are not logged in.

#41 2016-05-04 07:40:31

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: unofficial obmenu-generator repository (fixed!)

geekosupremo wrote:

Result:
Can't locate Data/Dump.pm in @INC (you may need to install the Data::Dump module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /usr/bin/obmenu-generator line 272.

I followed those steps and I got this:

obmenu-generator -i -p
/usr/bin/obmenu-generator: schema file `/root/.config/obmenu-generator/schema.pl' does not exists!

Edit: I just realized it's kind of "normal" (as it was mentioned in a post above). schema.pl should be just copied over from /etc/obmenu-generator/. Therefore I just remove the code for schema.pl I found on a #! page from this post. I'm not sure if it made any difference but I also installed 'xterm' (this is just for the xterm-terminal) and 'libdata-dump-pearl'). Anyhow it looks great now (some icons have to be tweaked though)!

Last edited by martix (2016-05-04 13:26:04)

Offline

#42 2016-05-04 08:03:16

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: unofficial obmenu-generator repository (fixed!)

Just to sum how the steps look like (being root):

1.

echo 'deb http://download.opensuse.org/repositories/home:/Head_on_a_Stick:/obmenu-generator/Debian_8.0/ /' >> /etc/apt/sources.list.d/obmenu-generator.list

2.

apt-get update

3. It's also possible to use obmenu with xterm. In this case the xterm package should be installed as well

apt-get install obmenu-generator libdata-dump-perl

4. Create schema.pl in ~./config/obmenu-generator and copy schema.pl over

/rmkdir -p ~/.config/obmenu-generator
cp /etc/obmenu-generator/schema.pl ~/.config/obmenu-generatoroot/.config/obmenu-generator/

5.

obmenu-generator -i -p

It seems that libdata-dump-perl is necessary. xterm is not required. Installing the xterm package will lead to start the xterm-terminal from the menu).

Edit: Step 4 was edited as I oversaw Head_on_a_Stick's post about copying the file.
Edit 2: Clarifying the correct steps with optional xterm.

Last edited by martix (2016-05-04 22:54:12)

Offline

#43 2016-05-04 15:50:50

geekosupremo
Member
Registered: 2016-04-27
Posts: 169

Re: unofficial obmenu-generator repository (fixed!)

I did an "apt-get install libdata-dump-perl" crossed my fingers and ran "obmenu-generator -i -p".

I got the following result:
** A dynamic menu has been successfully generated!
Obt-Message: Xinerama extension is not present on the server

Yay!

Although I'm not sure what the "Obt-Message" is about.

Offline

#44 2016-05-04 15:52:55

geekosupremo
Member
Registered: 2016-04-27
Posts: 169

Re: unofficial obmenu-generator repository (fixed!)

xaos52 wrote:

If enough support can be gathered, I could log all necessary steps needed to make it a BL package. How would that be for a learning experience?

While a rank amature I'd like to know how it works too! Maybe then I can be more constructive in my "bug reports". big_smile

Offline

#45 2016-05-04 22:59:37

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: unofficial obmenu-generator repository (fixed!)

geekosupremo wrote:

** A dynamic menu has been successfully generated!
Obt-Message: Xinerama extension is not present on the server

Great! So libdata-dump-perl is required after all. I just tried "obmenu-generator -i -p" and I do not get any Obt-Message. On a different forum it was described as "the old solution for moving windows across screens, it disables any acceleration." Needs to be enabled in xorg.conf (but better not to). I also have to mention that now ALL the icons are correct, it looks pretty.

As for xterm, I removed it in the end. Now  I receive a small openbox window after starting terminal from the menu saying "Failed to execute child process "xterm" (No such file or directory)". There is line 7 in openbox menu.xml. I tried to change [CDATA[xterm]] to terminator, but it's still the same. Could someone maybe point in the right direction how to fix it?

Last edited by martix (2016-05-04 23:14:20)

Offline

#46 2016-05-05 06:39:55

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: unofficial obmenu-generator repository (fixed!)

Thanks for working on this, I'll update the packages tonight.

martix wrote:

Now  I receive a small openbox window after starting terminal from the menu saying "Failed to execute child process "xterm" (No such file or directory)". There is line 7 in openbox menu.xml. I tried to change [CDATA[xterm]] to terminator, but it's still the same. Could someone maybe point in the right direction how to fix it?

Try this:

sed -i 's/xterm/x-terminal-emulator/g' ~/.config/openbox/menu.xml && openbox --reconfigure

Offline

#47 2016-05-05 08:43:48

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: unofficial obmenu-generator repository (fixed!)

Head_on_a_Stick wrote:

Try this:

sed -i 's/xterm/x-terminal-emulator/g' ~/.config/openbox/menu.xml && openbox --reconfigure

Thank you for the suggestion. Unfortunately it's still the same. I also checked obmenu-generator config.pl (line 95, xterm replaced by terminator) and the openbox menu file (the content has changed), reconfigured openbox, started obmenu-generator -u -i again (which now showed the content of menu.xml in the terminal window) -> still cannot start terminator from the menu.

Offline

#48 2016-05-05 14:30:14

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: unofficial obmenu-generator repository (fixed!)

martix wrote:

... still cannot start terminator from the menu.

Do other menu items start terminator OK?


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#49 2016-05-05 15:29:21

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: unofficial obmenu-generator repository (fixed!)

Yes, everything else is ok. Also using terminator by clicking on the tint icon works fine. All icons in the menu are correct as well. Only using "terminal" via menu gives the complaining openbox window about "Failed to execute child process "xterm" (No such file or directory)". Installing xterm and removing it after I installed obmenu-generator messed up something... I just tried to remove obmenu-generator and install it again, but the issue remains.

Offline

#50 2016-05-05 15:37:17

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: unofficial obmenu-generator repository (fixed!)

Ah, the joys of wanting a menu-generator  ]:D


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#51 2016-05-05 16:15:28

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: unofficial obmenu-generator repository (fixed!)

damo wrote:

Ah, the joys of wanting a menu-generator  ]:D

Oh yes... I wish I'd overseen the xterm recommendation during the install. What I'm wondering about is that in the openbox menu.xml there remaind the xterm command in the terminal line after I removed the xterm package. After changing the command to terminator (after CDATA) - why doesn't the menu uses this line (or better to ask: why is openbox still looking for xterm)? (I tried reconfigure, restart, reinstall, etc...).

Edit: Finally found it! It turns out that in ~/.config/obmenu-generator/schema.pl  there is the terminal command, which is used by the menu. After xterm was replaced by terminator there, opening terminal via menu works like a charm. Just a sidenote that the default lock command does not seem to work.

Last edited by martix (2016-05-05 16:29:40)

Offline

#52 2016-05-05 16:24:49

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: unofficial obmenu-generator repository (fixed!)

martix wrote:

... why is openbox still looking for xterm? ....

Maybe it is more likely that the menu generator is looking for it, and Openbox itself is just displaying the error message?


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#53 2016-05-05 16:35:19

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: unofficial obmenu-generator repository (fixed!)

damo wrote:

Maybe it is more likely that the menu generator is looking for it, and Openbox itself is just displaying the error message?

Yes, I think that's correct (see edit above). As for the exit via menu: Is there maybe a tuto or a post about the changes for getting an exit window like via the openbox-menu?

Offline

#54 2016-05-05 17:04:15

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: unofficial obmenu-generator repository (fixed!)

^ Can you use the bl-exit section from the default menu.xml?

<menu id="exit-menu" label="Exit"> .....etc

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#55 2016-05-05 17:43:11

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: unofficial obmenu-generator repository (fixed!)

Thank you for the hint. In the end found it: For getting the bl-logout window line 110 in schema.pl has to be

{item => ['bl-exit', 'Exit', 'exit']},

I'm wondering what is the command for locking the screen (xscreensaver seems not to be installed on default).

Edit: Silly question, obviously it's "bl-lock"  big_smile  So line 107 in schema.pl is

{item => ['bl-lock', 'Lock', 'lock']},

and voilá: Screensaver works from the menu!

@Head_on_a_Stick: Is there a way maybe to reverse this command?

sed -i 's/xterm/x-terminal-emulator/g' ~/.config/openbox/menu.xml && openbox --reconfigure

Hmmm, can you believe it? Everything just works for me, and every icon is there! One last "cosmetic" issue: There is a "categories" label in the menu, which seems to be unnecessary. Replacing line 38 in schema.pl by

{sep => undef},

looks really good in the end.

Last edited by martix (2016-05-05 18:02:08)

Offline

#56 2016-05-05 18:22:54

geekosupremo
Member
Registered: 2016-04-27
Posts: 169

Re: unofficial obmenu-generator repository (fixed!)

Something of an update:

I retried the install from the repo, on a "new" VM and it doesn't pull in the 'libdata-dump-perl' package by itself. Not a huge deal ... and I wish I knew how to help there more.

Still big thanks to all who helped put this together in the first place! big_smile

Offline

#57 2016-05-05 18:40:36

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: unofficial obmenu-generator repository (fixed!)

martix wrote:

...

@Head_on_a_Stick: Is there a way maybe to reverse this command?

sed -i 's/xterm/x-terminal-emulator/g' ~/.config/openbox/menu.xml && openbox --reconfigure

....

man sed

  tongue

Just reverse the 'replace' syntax:

sed -i 's/x-terminal-emulator/xterm/g' ~/.config/openbox/menu.xml && openbox --reconfigure

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#58 2016-05-05 18:49:57

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: unofficial obmenu-generator repository (fixed!)

geekosupremo wrote:

I retried the install from the repo, on a "new" VM and it doesn't pull in the 'libdata-dump-perl' package by itself.

Yeah, I haven't added it yet, sorry.

I'm just trying to set up a container to build the stuff now.

Offline

#59 2016-05-05 18:56:58

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: unofficial obmenu-generator repository (fixed!)

damo wrote:

Just reverse the 'replace' syntax:

sed -i 's/x-terminal-emulator/xterm/g' ~/.config/openbox/menu.xml && openbox --reconfigure

Not sure if that's a good idea, especially if @martix doesn't have xterm installed.

martix wrote:

Is there a way maybe to reverse this command?

Just use obmenu-generator to generate a new menu and overwrite any changes, perhaps?

Offline

#60 2016-05-05 20:59:12

geekosupremo
Member
Registered: 2016-04-27
Posts: 169

Re: unofficial obmenu-generator repository (fixed!)

Head_on_a_Stick wrote:

Yeah, I haven't added it yet, sorry.

I'm just trying to set up a container to build the stuff now.

No worries, Mate! You're doing far more than I am. I'm just thankful you are doing this at all.

Looking forward to @xaos52's look into how we all can further the state of BL with packages for great justice! wink

Offline

Board footer

Powered by FluxBB