Change LXDE desktop context menu

6,301

Solution 1

/usr/share/lubuntu/openbox/menu.xml 

Running Lubuntu 15.10 'wily', the path to the xml file which contains the menu options. It may be different for another version, but for those who are running what I am running, this is the location of the file to change the LXDE desktop context menu.

To change the "Terminal" menu item to run the lxterminal, instead of the default terminal, open menu.xml (sudo) and find the following block of code:

<item label="Terminal" icon="/usr/share/icons/hicolor/128x128/apps/lxterminal.png">
<action name="Execute">
  <command>lxsession-default terminal</command>
  <startupnotify>
    <enabled>yes</enabled>
  </startupnotify>
</action>

Change the block to:

<command>lxterminal</command>

Your icon may be located at a different path, depending on your version, but this example is based on my machine, so yours may be different. You can create your own icon .png file, and set the path there, as well.

When you're done, just save the updated file, and then right-click on desktop, and select System->Restart Openbox. Select "Terminal" option under shortcuts, and Vala!

Solution 2

The right click LXDE context menu is to be found here:

/usr/share/lxde/openbox/menu.xml 
Share:
6,301

Related videos on Youtube

cxdf
Author by

cxdf

Updated on September 18, 2022

Comments

  • cxdf
    cxdf over 1 year

    I am currently running on LXDE, and I'm curious as to whether there is a way to change the context menu when right clicking the desktop.

    I'd like to replace Xterm with LXTerminal.

    Is there a config I should change for this?

    EDIT: For clarification, to enable the Window Manager context menu, you have to visit desktop settings->Advanced, and click the checkbox for enabling the Window Manager menu.

    Screenshot of Context Menu

    • Admin
      Admin about 11 years
      Could you put up an image of this "context menu"? I'm using Lubuntu 12.10, not just LXDE, and I don't see anything related to Xterm or LXterminal in the context menu I get when I right-click on the desktop. If you have problems with taking the screenshot, you could look here.
    • Panther
      Panther about 11 years
    • Admin
      Admin about 11 years
      Op says he/she is right-clicking on the desktop.
    • cxdf
      cxdf about 11 years
      @vasa1 I added a clarification for the 'Context Menu'. It's actually the Window Manager handling the right click. I'm technically using openbox-lxde
    • Admin
      Admin about 11 years
      Okay, let's hope someone who uses LXDE/Openbox come around. I use Lubuntu and while that is LXDE/Openbox, it also uses PCManFM as file and desktop manager as the default. I see the option you mention but I haven't gone down that road.
    • Admin
      Admin almost 11 years
      Could you modify the image so that the menu is more visible? Right now, it's isn't legible. Or have you solved your issue? If you have, why don't you post the solution as an answer?
  • DnrDevil
    DnrDevil about 8 years
    This fails to answer the question
  • Scott Fleming
    Scott Fleming about 8 years
    Updated my answer, which I feel now fully answers the question.