Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 6620  / 3 Years ago, sun, october 10, 2021, 5:56:18

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


More From » 12.04

 Answers
4
/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!


[#31842] Tuesday, October 12, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
alliulet

Total Points: 46
Total Questions: 109
Total Answers: 97

Location: Svalbard and Jan Mayen
Member since Sat, Oct 10, 2020
4 Years ago
;