PDA

View Full Version : Adding to the Main Menu under LXDE



Forester
02-09-2011, 08:15 PM
Hi,

I've tried adding a new item to the Programming group of the Main Menu under LXDE.

I selected the Main Menu (editor) item from the Preferences group of the Main Menu itself. I filled in the correct information, including selecting an icon file. However the new menu item does not appear as an entry in the Programming Group of the (real) Main Menu.

I've rebooted and it still does not appear in the (real) Main Meny but if I start the Main Menu (editor) again, the entry is there.

What am I missing ? What should I try next ?

utu
02-09-2011, 08:45 PM
I would like to know as well.
The reference below says there's no graphical way to do it.
Whether that's the last word or not, I don't know.

http://wiki.lxde.org/en/Main_Menu

Let us know how you solve this.

Werner P. Schulz
02-09-2011, 10:43 PM
I selected the Main Menu (editor) item from the Preferences group of the Main Menu itself.This is the menueditor "alacarte"; he is only designed for editing Gnome-menu, not LXDE-menu.

Create a new entry in '/boot/grub/menu.lst' of your HD-installation and append at kernel-line "desktop=gnome".

Boot Gnome Desktop! Now all changes made with "alacarte" will be permanent in Gnome-menu (not in LXDE-Menu!).

Greetings Werner * http://www.wp-schulz.de/knoppix/summary.html
Own Rescue-CD with Knoppix (Knoppix V6.4.4 remaster)

dinosoep
02-09-2011, 10:47 PM
I have a very simple menu editor installed, but you can only hide and show items
let me know if you want to know the name, I'll try and find it

Werner P. Schulz
02-09-2011, 11:14 PM
... be aware: Gnome-desktop is only available with Knoppix-DVD not -CD!

Greetings Werner * http://www.wp-schulz.de/knoppix/summary.html
Own Rescue-CD with Knoppix (Knoppix V6.4.4 remaster)

Forester
02-09-2011, 11:19 PM
Let us know how you solve this.

Moi ? Mess around with XML files in hidden directories with a text editor ? I haven't had so much fun since I tried to configure an xfce desktop back in the days when I used Horrible Hog (or was it Hardly Horrendous ? I forget, gladly). ;)

The Main Menu editor deposits a little file with a Spanish name in ./local/share/applications and references it from .config/menus/gnome-applications.menu, which might work for a gnome desktop but dunt work for lxde.

A copy the Spannish desktop file in ~/Desktop gave me a nice desktop icon with the correct name and iconic representation. So that might do except its usually hidden behind some window or other.

I managed to patch it into the "Application Launch Bar" "Panel Applet", which is much more satisfactory, but not by doing it "graphically" - that use of the word isn't in my English dictionary: I prefer the terms "wimpingly" or "gooeyly".

I did it by editing .config/lxpanel/LXDE/panels/panel (this is a structured file but it's not XML). In the Plugin block with type lanuchbar (I feel hungrier already), I added the subblock:



Button {
id=/absolute/path/of/spanish/desktop/file
}Naturally I renamed the desktop file first just in case I ever add another application (which seems unlikely now that I know just how easy this is).

I had to make one minor adjustment to the desktop file itself. On the desktop, the Name[us] and Icon[us] entries are honoured but in the lunch bar the Name[us] and the Icon entries are honoured. You say potato and I say potato and all that.

As for the Main Menu itself, I'm flummoxed. I have, in the past, done this by hand for the gnome, kde and xfce desktops but I can't find where the lxde main menu comes from or goes to.

Me thinks some brave soul might like to boot the Knoppix iso, take a snapshot of KNOPPIX-DATA, uninstall some hapless app, take another snapshot, compare the snapshots and so reverse engineer the problem.

Anyway, utu, thanks for the encouragement to get this far.

mcicak
04-23-2011, 01:12 AM
I started a project called lxmed (https://sourceforge.net/projects/lxmed/). The project is written in Java and it's main goal is to provide a gui tool for customizing your Main Menu in LXDE. The work is still in beta, any suggestions are appreciated.

Forester
04-23-2011, 08:24 PM
I started a project called lxmed (https://sourceforge.net/projects/lxmed/). The project is written in Java and it's main goal is to provide a gui tool for customizing your Main Menu in LXDE. The work is still in beta, any suggestions are appreciated.

Hi McIcak and welcome to the Knoppix forums.

So where is your project ? Source forge ? I'm sure utu would love to down load it and take it for a spin.

mcicak
04-24-2011, 10:13 PM
Yes it's on sourceforge. You can find it by typing lxmed in sourceforge or google. Or you can follow this (https://sourceforge.net/projects/lxmed/) link. It is still in beta. It has a few unfinished stuff, buy you get the idea what it looks like.

Blacksimon
02-13-2012, 02:08 PM
LXMED is similar to alacarte. I try to use even XDG (http://linux.die.net/man/1/xdg-desktop-menu).
I want add a new category in menu called Personal near Application, Office, System, Games, Internet.... with two entries to lauch my personal two script...
but, i think, will be impossible !!!
I have only been able to create two file .desktop to put in ~/.local/share/application; and now I've two new entries in system sub menù....not what I'd like to have....mhhhh

bye

Denver Dave
05-25-2013, 02:47 AM
I'm running the LXDE desktop with a knoppix 7.0.5 USB created from the DVD

Based on suggestions from klaus2008 in http://knoppix.net/forum/threads/30573-How-to-add-application-short-cut-to-the-menu I've been able to add items to the menu with accessories / menu . Not a big deal, but while adding and deleting works fine, the new item is always at the end of the items in the menu section. The move up and down does not seem to do anything.

Is this a limitation of the menu editor or should I be doing something different?

utu
05-25-2013, 04:20 AM
Is this a limitation of the menu editor or should I be doing something different?Is your menu list alphabetized, possibly? Mine is.

Denver Dave
05-26-2013, 06:01 AM
This is interesting, the item that I added was Firefox and it is last, but everything else is alphabetic within the internet section.

utu
05-26-2013, 05:12 PM
Greetings, Dave.

FWIW, In earlier versions of Knoppix, I used to add a Main Menu category, 'Hidden Gems',
with six items previously not found in the Main Menu. Having tried both Alacarte and LXMed,
I settled on a simple procedure indicated in posts 4 and 5 of the thread at:

http://knoppix.net/forum/threads/29858-Hidden-Gems-in-Knoppix-7?highlight=gems

IIRC, these additions are mostly no longer necessary as since most may now be found
somewhere within the existing categories. BUT...

In your case, you might compare your process with mine to see if anything obvious occurs.

Regards