macadavy wrote:Am I missing something simple in all this, or is xshisen just an older dot.pup that seeks to put itself in the no-longer-existing DotPup menu?
Any suggestions as to how to manually edit menus in LHPuppy?
Update: So I go to Start > Documents > Text Editors to open Leafpad and low & behold what do I see but Xshisen nestled in between SeaMonkey Composer and the Text Editors sub-menu, and again between the MP and e3 console editors within the sub-menu - go figure! So how
does one manually edit menus in LHPuppy?
Hi macadavy, good question! Complicated answer but I'll try to keep it simple, yet answer so that maybe others can be helped also... Many DotPups were were written before XDG menu system was adopted in Puppy, so xshisen.pup, for example doesn't by default come with a .desktop application file necessary for proper XDG menu support.
What is a .desktop file? A small text file for each app, usually found in /usr/share/applications. Open that folder in Rox-Filer, right-click on one|Open As Text to see what is inside. To make a new one
in Lighthouse, right-click in an empty area inside /usr/share/applications | click New | Application | Create. Now you'll have a new file there--Application.desktop, so rename it the same as your new application, e.g., xshisen.desktop. (I see you're on the right track as you indicate you made a .desktop file and it's now showing in the menu.) Anyway, right-click | Open As Text. Now, go through the entries, changing the ones that need to be changed for xshisen instead of what's there (abiword.)
Exec=
This line specifies how to execute the application. If the app is in the menu but doesn't work right when you click on it, open a Terminal and copy and paste everything
after the Exec= to see what's happening.
Icon=
In Lighthouse (and in KDE) many icons are .png (not .xpm) and located within /usr/share/icons. So the DefaultBrowser.desktop has the entry: Icon=browse-gold2.png
I put in #comments below in the template to help explain each line; most are from a helpful post by Rarsa:
http://www.murga-linux.com/puppy/viewtopic.php?t=7685 Rules of thumb on Desktop entries:
1-This file is Case sensitive
2-If you aren't sure about a key (existing line), leave it alone.
Now getting back to your question, look at:
Categories=
This one is what determines
where the app will appear in the menus and whether it can be in more than one place. More than one category separated by a semicolon ( ; ) will allow more than one entry in the menu system. Too many? Just pick the one you want and remove the others.
For more info on categories see
http://standards.freedesktop.org/menu-s ... t/apa.html
and for Barry's specific Puppy menu categories, open
/etc/xdg/menus/hierarchy with a text editor.
When you've finished with the new .desktop file, save your changes and click Menu | Window Manager | Refresh Menus or type fixmenus in a Terminal.
-TazOC