Author Topic: <SOLVED> Unable to open menu with right click in base edition  (Read 1261 times)

Offline brownie

  • Newbie
  • *
  • Posts: 2
<SOLVED> Unable to open menu with right click in base edition
« on: January 15, 2016, 09:41:37 pm »
I've just installed sparkylinux. It worked just fine :D, but after upgrade I can't open menu with right click. When I right click a window pops up saying:

Invalid output from pipe-menu "/usr/bin/perl /usr/bin/obmenu-generator -i".

I've looked throughout forum but didn't find any similar question.

Could anybody help me to resolve this issue?
« Last Edit: January 22, 2016, 09:54:52 pm by brownie »

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1465
    • SparkyLinux
Nothing is easy as it looks.

Offline brownie

  • Newbie
  • *
  • Posts: 2
Re: Unable to open menu with right click in base edition
« Reply #2 on: January 16, 2016, 09:54:54 am »
thank's for you help :) it works now :P

Offline midge

  • Newbie
  • *
  • Posts: 3
Re: Unable to open menu with right click in base edition
« Reply #3 on: April 30, 2016, 09:24:19 am »
Hello,

The solution given does not work for me. 

I am using a fresh install of Sparky on a VirtualBox VM (testing to see if I can switch as my main OS).

This is the 64-bits base openbox version using the old installer as my main will not be UEFI.  I have applied the recommended solution, rebooted and it is still the same.

Any ideas?

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1465
    • SparkyLinux
Re: <SOLVED> Unable to open menu with right click in base edition
« Reply #4 on: May 01, 2016, 12:38:41 am »
Run Sparky in failsafe mode, login in the text console as root.
Edit the file (with nano text editor):
Code: [Select]
/home/your-nick/.config/openbox/rc.xmlAdd the text just before </keyboard> :
Code: [Select]
<keybind key="W-t">
    <action name="Execute">
        <command>x-terminal-emulator</command>
    </action>
</keybind>
Save the file Ctrl+o, quit nano Ctrl+x, then normaly reboot:
Code: [Select]
rebootLogin to Openbox and run terminal with keys: Super+t
Run command:
Code: [Select]
obmenu-generator -p -iIt should generate new menu. If not show me the last command output.
Nothing is easy as it looks.

Offline midge

  • Newbie
  • *
  • Posts: 3
Re: Unable to open menu with right click in base edition
« Reply #5 on: May 19, 2016, 04:42:08 am »
OK, sorry about the lateness but I have nor quite given up yet.

When trying to run "obmenu-generator -p -i" rebooting I get:

<Can't locate Linux/DesktopFiles.pm in @INC (you may need to install the Linux::DesktopFiles module)...>

What is the real problem underlying this issue?

Thanks
« Last Edit: May 19, 2016, 07:19:31 am by midge »

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1465
    • SparkyLinux
Re: <SOLVED> Unable to open menu with right click in base edition
« Reply #6 on: May 19, 2016, 04:53:56 pm »
Looks like you have a problem with the DesktopFiles module, so you have to re-install the obmenu-generator as following:
http://sparkylinux.org/wiki/doku.php/obmenu_generator#it_does_not_work
or try to remove and install it back manually:
http://sparkylinux.org/wiki/doku.php/obmenu_generator#alternate_installation_method
« Last Edit: May 19, 2016, 04:56:12 pm by pavroo »
Nothing is easy as it looks.

Offline midge

  • Newbie
  • *
  • Posts: 3
Re: <SOLVED> Unable to open menu with right click in base edition
« Reply #7 on: May 20, 2016, 02:17:55 am »
Sorry but I did try those suggestions already before my previous post.

I am giving up and going to a vanilla minimal Debian.  I will come back and revisit Sparky in a few months time probably, but meanwhile I have to get on.

Good luck and thanks for trying to help.

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1465
    • SparkyLinux
Re: <SOLVED> Unable to open menu with right click in base edition
« Reply #8 on: May 20, 2016, 09:30:51 pm »
Miracles hapen, as my grandmother used to say.
Don't know why, but it doesn't want to work for you.

Anyway, you can change the obmenu to standard's Debian menu as following:
Move (change name) of the file from:
Code: [Select]
~HOME/.config/openbox/menu.xmlto:
Code: [Select]
~HOME/.config/openbox.menu-copy.xmlCreate new menu file:
Code: [Select]
~HOME/.config/openbox/menu.xmlpast the text to the new file:
Spoiler (click here to view)
Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<openbox_menu xmlns="http://openbox.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openbox.org/                 file:///usr/share/openbox/menu.xsd">
<menu id="root-menu" label="Openbox 3">
<item label="Files">
<action name="Execute">
<execute>pcmanfm</execute>
</action>
</item>
<item label="Web browser">
<action name="Execute">
<execute>x-www-browser</execute>
</action>
</item>
<menu id="/Debian">
</menu>
<menu id="openbox" label="Config">
<item label="ObConf">
<action name="Execute">
<execute>obconf</execute>
</action>
</item>
<item label="System Upgrade">
<action name="Execute">
<execute>remsu sparky-aptus-upgrade</execute>
</action>
</item>
<item label="Synaptic">
<action name="Execute">
<execute>remsu synaptic</execute>
</action>
</item>
<item label="Wallpaper">
<action name="Execute">
<execute>nitrogen</execute>
</action>
</item>
</menu>
<menu id="root-menu-23433" label="Take Screenshot">
<item label="Do it now">
<action name="Execute">
<execute>scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/ &amp; gpicview ~/$f'</execute>
</action>
</item>
<item label="In 5 Seconds">
<action name="Execute">
<execute>scrot -d 6 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/ &amp; gpicview ~/$f'</execute>
</action>
</item>
<item label="Selected Area">
<action name="Execute">
<execute>scrot -s '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/ &amp; gpicview ~/$f'</execute>
</action>
</item>
</menu>
<menu id="root-menu-23434" label="Debian Menu">
<item label="Selected">
<action name="Execute">
<execute>scrot -s '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/ &amp; gpicview ~/$f'</execute>
</action>
</item>
</menu>
<item label="Terminal emulator">
<action name="Execute">
<execute>x-terminal-emulator</execute>
</action>
</item>
<item label="Run command">
<action name="Execute">
<execute>gexec</execute>
</action>
</item>
<item label="Restart">
<action name="Restart"/>
</item>
<separator/>
<item label="Exit">
<action name="Execute">
<execute>wm-logout</execute>
</action>
</item>
</menu>
</openbox_menu>
Save it, and restart Openbox:
Code: [Select]
openbox --restartor log out and log in back.
« Last Edit: May 20, 2016, 09:32:33 pm by pavroo »
Nothing is easy as it looks.