LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Why menu or item on right click can't configed by menu.xml? (https://www.linuxquestions.org/questions/debian-26/why-menu-or-item-on-right-click-cant-configed-by-menu-xml-4175599334/)

luofeiyu 02-09-2017 01:07 AM

Why menu or item on right click can't configed by menu.xml?
 
1 Attachment(s)
Code:

    ls  /home/debian8/.config/openbox/
    lxde-rc.xml  menu.xml

Code:

    file /usr/share/icons/Tango/32x32/apps/file-manager.png
    /usr/share/icons/Tango/32x32/apps/file-manager.png: symbolic link to system-file-manager.png

    file /usr/share/icons/Tango/32x32/apps/system-file-manager.png
    /usr/share/icons/Tango/32x32/apps/system-file-manager.png: PNG image data, 32 x 32, 8-bit/color RGBA, non-interlaced

Here is my mouse right click on desktop.



Now i want to change the right click,menu.xml file was edited into the following.

Code:

    <?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="PCMan" icon="/usr/share/icons/Tango/32x32/apps/file-manager.png">
                    <action name="Execute">
                        <command>pcmanfm</command>
                    </action>
                </item>
        </menu>
    </openbox_menu>

The mouse right click remains unchanged after reboot,why?

ondoho 02-09-2017 02:15 AM

right-click the desktop => preferences => advanced => show window manager menu when right-clicking
(i'm writing this from memory)

Mill J 02-09-2017 08:26 PM

I use obmenu to edit the right-click menu. After you are done you have to reconfigure openbox, which should be under openbox preferences>reconfigure openbox

jimkalb 07-24-2017 12:45 PM

None of this helps me! When I first tried ondoho's suggestion I got a stock openbox menu. Then it disappeare, and won't come up, so I have to go back to the pre-ondoho-suggestion state. And obmenu and reconfigure don't seem to do anything either.

[PROBLEM SOLVED] The "stock openbox menu" was actually the menu.xml in my $HOME/.config/openbox directory, and I got stuck because I couldn't figure out how to reconfigure after I succeeded in mucking it up so there was no "reconfigure" to click on. Sorry for the distraction!


All times are GMT -5. The time now is 06:41 PM.