I can write the program I need. I only needed to know what needed done. Here are the answers I needed for Linux:
---------------------------------
For Lindows ( I think Lindows is Debian based)
use /usr/share/applnk/Applications
Example: OpenOffice spreadsheet:
/usr/share/applnk/Applications/Business/OpenOffice/spreadsheet.desktop
Just use the spreadsheet.desktop as a guide.
--------------------------------
For Mandrake KDE
use /home/loginname/.kde/share/applnk-mdk
Example: xemacs editor
/home/loginname/.kde/share/applnk-mdk/Applications/Editors/xemacs.desktop
--------------------------------
For Mandrake Gnome
use /home/loginname/.gnome2/apps-mdk/Applications/Editors/Xemacs.desktop
BTW: I copied
/home/loginname/.gnome2/apps-mdk/Applications/Editors/Xemacs.desktop
to
/home/loginname/.kde/share/applnk-mdk/Applications/Editors/xemacs.desktop
and it worked without modification!
--------------------------------
For Mandrake IceWM
use /home/loginname/.icewm/menu
Example: xemacs editor
Besides the file name being "menu", there are a lot of sections within it such as "menu "Editors"" below.
I added the line "prog "Xemacs" - /usr/local/bin/xemacs"
menu "Editors" /usr/share/icons/mini/editors_section.png {
prog "Emacs" /usr/share/icons/mini/emacs.png emacs
prog "GEdit" /usr/share/icons/mini/gedit.png /usr/bin/gedit
prog "KHexEdit" - khexedit
prog "KWrite" - kwrite
prog "Kate" - kate
prog "Xemacs" - /usr/local/bin/xemacs
}
--------------------------------
Now it is clear the types of things to look for on different platforms. I will be downloading other window managers and looking for the same sorts of things. The script that gets written must search out the directory structures as above and add/change the stated files accordingly. The new application will automatically appear in the "Start" menu.
A note of caution. There is a .gnome and a .gnome2 local directory. Any script will have to look in any and all .gnomeX.Y directories for a valid directory structure, and/or valid .desktop files, before deciding what to do. At least now I know what has to be done.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.