George P Nychis schreef: > Hi luke, > > I unfortunately can't answer either of your questions... but i'd also > like to know how to add|remove programs for the menu at the top. In > particular I have been installing small games for Gentoo's portage > that do not show up in the menu, i've seen > /usr/share/fvwm-crystal/fvwm/Applications ... and i've tried adding > files in there with the same format as the others, and reloading my > menu's but it never seems to work.
George, you're on the right track, but you've just missed/didn't know about the final step :-) . What you want is to do the following: 1. Copy/create the Application/whatever parent folder to/in ~/.fvwm/Applications/whatever. Meaning, that if you want your app to show up in Games/Arcade, copy either copy /usr/share/fvwm-crystal/fvwm/Applications/20~Games/Arcade to ~/.fvwm/Applications/ (and delete the contents, if you like, but you don't have to if they're going to remain exactly the same as the "originals"), or, if you don't mind manual labor, just create the 20~Games/Arcade tree in ~/.fvwm/Applications. The idea being that you need to replicate the tree as it currently exists (unless you're making a new category or submenu). 2. The other usefulness of copying the parent folder rather than creating empty folders is that it gives you easy access to an example to work from. Open some item file that's like the one you want to create and edit it to suit the application you want it to open. Save the new file *as* (don't save!! save as) .... (#)~name_of_the_executable~name_you_want_to_see_in_menu. "#", of course, refers to priority, if you want the app to appear somewhere specific on the list of apps; the higher the number (I think they go from 1 to 20 with 20 being the highest) the higher priority the app will have and the higher it will appear on the list. If no priority is given, the apps will be sorted alphabetically after any priority items. So if we were talking about Fake NES the NES emulator, which I in fact made a menu item for, the script containing the file would be saved as (and in fact is saved as) 14~fakenes~FakeNES The executable binary (in /usr/bin) is 'fakenes', the name that appears on the menu is 'FakeNES'. The priority is "in the middle' because items in the RPG folder have the highest priority on my system (they're all from 16-20, so appear at the top of the menu), but emulators come second (I made a new folder in 20~Games, called Emulators, where this and DOSBox and the like reside). Just as a note, you can also put Wine-emulated programs in your FVWM-Crystal menu; the Application scripts are quite flexible. It's perfectly possible to have a script have more commands than just "exec binary_name $@". You can just as well have a script that says something like: #!/bin/sh cd /usr/local/games/DeusEx/System wine DeusEx.exe or #!/bin/sh cd /usr/local/games/Bethesda\ Softworks/Morrowind exec cedega -run Morrowind Morrowind $@ 3. You may have noticed me keep referring to 'scripts', and if you are at all familiar with shell scripting, the #!/bin/sh at the top of my two examples probably tipped my hand. You see, the thing about scripts is that they don't run if they are not executable. So the reason why your new application entries are not appearing, George, is because you either didn't know, or forgot (I *always* forget this and then have to go back and do it after I restart fvwm-crystal and the entries don't show up) that you have to make the new entries executable before you restart, or fvwm-crystal will just ignore them. chmod +x </path/to/file> ought to do it, or just right-click the file in a GUI file manager, choose "Properties", go to the "Permissions" tab, and check the "File is executable" box. Hope this helps. Oh and btw-- if you want an icon to appear in the menu, make sure that your icon (correctly sized; you need at least the 22x22 and 32x32 sizes for the icon to show up in all locations, I think 48x48 is for the desktop icons and I don't know what 16x16 is used for) is named the same as the executable. Then fvwm-crystal will pick it up automatically. However, you may or may not get an icon in the application titlebar (that seems to be based on Class Name, and the Class name is usually, but not always the same as the executable name). If you have a menu icon but not a titlebar icon, edit (or copy and edit) ./components/styles/Application-Icons-22-32 to tell FVWM-Crystal that "Style (classname of executable-- use the "Identify" function if you don't know what it is) should use a particular icon in the 22x22 and 32x32 folders. Good luck. Holly (who almost had a whole guide finished, then 3.0.x --now x=3-- came out and I had to start over again since so much changed, again :-) ) _______________________________________________ FVWM-Crystal-users mailing list FVWM-Crystal-users@gna.org https://mail.gna.org/listinfo/fvwm-crystal-users