Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

<SOLVED> Unable to open menu with right click in base edition

Started by brownie, January 15, 2016, 09:41:37 PM

Previous topic - Next topic

brownie

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?

pavroo

Nothing is easy as it looks. Danielle Steel

brownie


midge

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?

pavroo

Run Sparky in failsafe mode, login in the text console as root.
Edit the file (with nano text editor):
/home/your-nick/.config/openbox/rc.xml
Add the text just before </keyboard> :
<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:
reboot
Login to Openbox and run terminal with keys: Super+t
Run command:
obmenu-generator -p -i
It should generate new menu. If not show me the last command output.
Nothing is easy as it looks. Danielle Steel

midge

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

pavroo

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
Nothing is easy as it looks. Danielle Steel

midge

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.

pavroo

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:
~HOME/.config/openbox/menu.xml
to:
~HOME/.config/openbox.menu-copy.xml
Create new menu file:
~HOME/.config/openbox/menu.xml
past the text to the new file:
[spoiler]<?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>
[/spoiler]
Save it, and restart Openbox:
openbox --restart
or log out and log in back.
Nothing is easy as it looks. Danielle Steel

View the most recent posts on the forum