3

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

cxdf
  • 275
  • 1
    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. –  Apr 09 '13 at 01:46
  • 1
  • 2
    Op says he/she is right-clicking on the desktop. –  Apr 09 '13 at 03:29
  • 1
    @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 – cxdf Apr 09 '13 at 22:15
  • 1
    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. –  Apr 10 '13 at 01:20
  • 2
    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? –  May 10 '13 at 06:37
  • 1
    Haven't found a solution yet. I'll post an updated image shortly. – cxdf May 14 '13 at 18:39

3 Answers3

2

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

/usr/share/lxde/openbox/menu.xml 
v2r
  • 9,547
2
/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!

0

You can change the applications that come up in the context menu by selecting the menu / Preferences / Default Applications for LX Session.

enter image description here

From this menu you can associate the terminal program of your choice with "Terminal Manager" and it will be opened when you use the context menu.

Organic Marble
  • 23,641
  • 15
  • 70
  • 122