PDA

View Full Version : Adding menu items to custom ISO (live-build)



jackal713
2014-03-09, 14:57
Hello,
I would like to add some menu items to a custom iso but can't seem to find any info on how to get started. If someone could point me to some docs or a config file I think I can take it from there. I just can't figure out where to start. Any help, suggestions, advice is more than appreciated. I have no issues creating an iso with custom/add-on packages and all packages installed have menu items, I just want to add some of my own.
Thank you,
j7



Edit: I have posted this info in the how-to section. https://forums.kali.org/showthread.php?20660-Adding-menu-items-to-your-custom-ISO-image

jackal713
2014-03-10, 04:55
After several hours of reading I found this post https://forums.kali.org/showthread.php?17800-quot-Kali-Linux-quot-Menu-ICON-missing-in-MATE-Desktop&highlight=menu that gave me the key words to search for which then lead me to this page. http://www.centos.org/docs/4/html/rhd-dg-en-4/ch-ddg-menus.html A short but good overview of the menu system and with the information from that page some searching lead me to this. https://developer.gnome.org/menu-spec/ I am not a programmer so it's all a bit confusing to me but I think I'll find more answers on the menu items there. Now I just need to incorporate that in to an iso.
j7

jackal713
2014-03-10, 17:28
I've got it. It's handled just like anything else you want to add to a custom iso. The easiest way I found was to create the menu items in your existing install then copy the file(s) and directory structure from
$HOME/.config/menus/ to your includes.chroot folder inside your build(live-build-config) folder. There is an option to show hidden folders if your doing this from the desktop.
Then copy the file(s) and directory structure from
$HOME/.local/share/applications/ to your includes.chroot folder. When it's all said and done you should have copied at least one ".directory" file and one or more ".desktop" files.
Finish building the iso as normal and your done.
I used this to add the recordmydesktop GUI (gtk-recordmydesktop) to the media capture menu (after adding it to the iso) inside the Kali Linux menu.

I would like to say thank you to the Kali community. This may be my first post but I have resolved many issues(mostly caused by me or lack of updates) with help from the forum. I hope this will help someone in the future.
j7