This is a idea for supporting custom folders on the PortableApps Menu and allow a much more improved identification and indexing support.
The idea is to have a little file (called customdir.ini) on each folder. The next example shows an mockup of what could be in the Documents Folder (# represents that the following text in that line are comments for explaining how it works):
[CustomDir] folderid=docs #sets an id to the folder, that way PAM can identify it. foldername=Documents #defines which name should came up on the menu for that folder description=The Documents folder #the description to show up on the menu icon=/PortableApps/PortableAppsMenu/App/IconTheme/documents.ico #the icon to show up on the menu for that folder showonmenu=true #sets up if the folder shows up on the menu or not
Also, we could follow up Ryan's PAID and set a xml file (called customdir.xml) on each folder like this instead:
<?xml version="1.0" encoding="UTF-8"?> <customdir id="docs"> <name>Documents</name> <description>The Documents folder</description> <icon imgtype="ico" location="/PortableApps/PortableAppsMenu/App/IconTheme/documents.ico" /> <shownonmenu value="true" /> </customdir>
PAM would look for these files on every folders on the root of the pen drive and display the folders on the Menu as specified on file. Plus, there would be 4 default ids: "docs", "pict", "videos" and "music", being these the defaults for displaying on the Menu by default, being available making up other ids for each folder on the pen drive.
That way, localized versions of PAM would be easily made. All that would be necessary to do is to rename the folders and translate the file to the actual language. Other idea is to allow translations to rename the name given to each id. Indexing would be easy and searches on the drive could be reduced to specific folders.