LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-04-2023, 03:36 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Rep: Reputation: 255Reputation: 255Reputation: 255
lxpanel : How to add an item into the menu ?


Hello,

Easy question.

How to add an item into the menu of lxpanel ?

Kind regards,
X.
 
Old 07-04-2023, 06:38 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,976

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
do you mean this? https://askubuntu.com/questions/8221...r-lubuntu-lxde
google is your friend
 
1 members found this post helpful.
Old 07-10-2023, 04:54 AM   #3
Neerarawat
LQ Newbie
 
Registered: Nov 2021
Posts: 3

Rep: Reputation: Disabled
Quote:
Originally Posted by Xeratul View Post
Hello,

Easy question.

How to add an item into the menu of lxpanel ?

Kind regards,
X.
To add an item to the menu of lxpanel, you'll need to modify the configuration file for the panel. Follow these steps:

Open a terminal window.

Navigate to the lxpanel configuration directory by running the following command:

cd ~/.config/lxpanel/LXDE-pi/

Note: The directory name may vary slightly if you're using a different LXDE session or a different user. Adjust the command accordingly.


Make a backup of the panel configuration file to be safe:
cp panel config-original


Open the panel configuration file using a text editor. You can use any text editor you prefer. For example:
nano panel

Look for the [menu] section in the configuration file. It should be near the top of the file.

To add an item, use the following format:
menu/ItemIndex=command_or_path

Replace ItemIndex with the desired index where you want the item to appear in the menu. For example, if you want the item to be the fourth item in the menu, use 4. Replace command_or_path with the command or path to the application or script you want to add.

Here's an example:
menu/4=lxterminal


This will add an item to the menu at the fourth position, which will open the LX Terminal when clicked.

Save the changes and exit the text editor.

Restart the panel for the changes to take effect. You can do this by running the following command:
lxpanelctl restart

The panel will restart, and the new item should now be visible in the menu.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lxpanel menu "Logout command is not set", Arch i3wm TheJooomes Linux - General 1 11-08-2021 08:27 AM
LXDE: app menu does not scale; but app text and lxpanel do scale nandy Linux - Software 4 08-20-2021 09:50 PM
[lxpanel] menu bar with program crashing [Raspbian][Pi3] NDR008 Linux - Desktop 2 11-26-2016 04:14 AM
mozilla xpm kmenu item desktop item cjae Linux - Newbie 3 04-06-2005 07:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration