First I wanna apologize if this is the wrong section or if a better solution has already been posted feel free to delete this post or move it…
I got lazy editing my menu everytime i uninstalled, installed something so I coded a generator in perl
it takes a directory of .desktop files and outputs all the data into a fvwm compatible menu format, separated by categories of the programs.
Keep in mind im not a programming guru so please check the output before using it in fvwm
Brief sample output:
m3th@l1quid ~ $ perl fvwm_menu.pl /usr/share/applications/
DestroyMenu MenuA
AddToMenu MenuA
- MissingSubmenuFunction FuncFvwmMenuDirectory
- “Astronomy” Popup MenuAstronomy
- “Game” Popup MenuGame
- “Graphics” Popup MenuGraphics
- “KDE” Popup MenuKDE
- “Network” Popup MenuNetwork
- “Office” Popup MenuOffice
- “Screensaver” Popup MenuScreensaver
- “System” Popup MenuSystem
Astronomy Menu
DestroyMenu MenuAstronomy
AddToMenu MenuAstronomy
- “Celestia” Exec /usr/bin/celestia
Game Menu
DestroyMenu MenuGame
AddToMenu MenuGame
- “ZSNES” Exec zsnes
- “TransGaming Cedega” Exec /usr/bin/cedega
- “XQF” Exec xqf
ect ect ect…
you can also output it to a file like so
perl fvwm_menu.pl /usr/share/applications/ > fvwm_menu_file
Besure to open it and check the top 2 array/hash
Ive tried to document it for pub use lol …
Again Im sorry if im posting this incorrectly
l1quid