From Pandora Wiki
This is a list of frequently asked questions about using the Pandora PND package format. For factual and other kinds of questions, use the search box. If your question is not answered on this page, do some research and include it!
- 1 The PND system
- 2 Usage
The PND system
What is a PND file?
- A PND file is a compact file that contains one or more runnable applications for the Pandora. The file is basically an archive (like a ZIP, RAR or ISO) that contains all the data that the provided set of applications require, along with some meta data about the applications themselves.
Why are PNDs useful?
- Normally, on an ordinary computer, it is necessary to install an application in order to run it. This usually happens in one of many different ways; an installer might be run, or an archive might become extracted, etc.
- PND files are used to allow for applications to be executed without them being installed first. They are supposed to work in a way similar to game cartridges, in that they contain all of the necessary information in one tight package that can be executed independently.
- This system is inspired by similar systems such as the Apple OS 10 DMG file system, the Puppy Linux package format, or the Haiku Box package management system.
Can I modify a PND file?
- You can, but you need special tools to do so. It is advised that only developers modify or create PND files.
Can a PND file modify itself?
- No, not without serious hacks.
How does a PND store application data?
- Since the PND cannot modify itself, there has to be a way for it to store runtime data, such as configuration files and user-added level files. This is achieved in the PND system by creating an application data directory for each application that is inside a PND. Since a PND can contain many applications, there can, and will, be multiple application data folders per PND, and each application declares its own application data folder name.
- The application data folders are located in "pandora/appdata/*" on the primary SD card of the system.
How do I use PND files?
- Using PND files on your Pandora is easy: You simply get hold of a PND file, presumably via a web page of some kind, and store it in a special folder on one of your SD cards. The default location is "/media/*/pandora/apps" which means that PNDs will be found on any SD card, USB stick or similar that has a "pandora/apps" folder.
- Once you've put your PND in a known location, the PND system will pick up the new PND, "activate" it, and create shortcut icons to the applications inside of the PND. You can then use these icons to launch the applications.
How do I change the search paths for PND files?
- Simply edit the "/etc/pandora/conf/apps" file, and change the "searchpath" entry to include the paths you want to use. Paths are separated by colons (":") and may include wildcards (in the shape of "*") anywhere in the path.
How do I launch a PND application without putting it in a special location?
- If you open a PND file in your file manager, the first application in the PND will be launched without you having to move the PND file.
How do I choose where the shortcut icons for a PND appear?
- With the default configuration, there are four different folders you can put your PND files in to have their applications show up in different locations:
- "/media/*/pandora/menu" - These PND-files will only generate shortcut icons in the system's application menu. ("*.desktop" files will be written to "/usr/share/applications")
- "/media/*/pandora/desktop" - These PND files will only generate shortcut icons on the Desktop. ("*.desktop" files will be written to "~/Desktop")
- "/media/*/pandora/apps" - At the moment, this path does the same as the "desktop" path: it extracts shortcuts on the desktop.
- "/usr/pandora/apps" This also extracts shortcut icons to the desktop.
How do I configure different locations for my PND shortcuts?
- Edit the file "/etc/pandora/conf/desktop" (The "desktop" refers to "*.desktop files"). It will look like this:
# Open Pandora # Desktop configuration [desktop] searchpath /media/*/pandora/desktop:/media/*/pandora/apps:/usr/pandora/apps dotdesktoppath ~/Desktop/ iconpath /tmp [menu] searchpath /media/*/pandora/menu dotdesktoppath /usr/share/applications iconpath /tmp
- You should leave the "iconpath" variables be, but you can change which paths are searched through and where "*.desktop" files are extracted with the "searchpath" and "dotdesktoppath" variables, respectively.