icurafu
The Hallucinogenic Elf
If xml is done right, you will be able to drag it along. That's why it is extensible.
burito said:"The Exec key must contain a command line."
[Desktop Entry]
Type=Application
Name=Foo
Exec=`find /home -name "foo.py"`
Sounds evil yes, but the kernel will cache large portions of the allocation table, and this is actually very quick.
My point wan't about speed. Rather, because .desktop doesn't support relative paths, it's not compatible with the goals of PXML, namely distributing software in movable directories. It could be modified or extended to support relative paths. However, that wouldn't give you the advantage of compatibility with existing applications, since they still wouldn't know where to find the executable.
Dutch_Cap said:Correct me if I'm wrong, but I believe the point of PXML is to have software in movable directories. Unfortunately, .desktop only support absolute paths (or executables in a directory in the PATH variable).
The .desktop format is designed around the classic UNIX way of doing things where software is in a fixed place. For the Pandora, it'd be much better if users could just drag-and-drop a directory onto their SD cards and move it around later, without having to worry about adding the directory to their PATH.
It seems to me if you want software in movable directories, there's no way to make this compatible with the .desktop standard as it currently exists.
It's not like you'd have to recompile them or anything, you'd just have to interpret them slightly differently.
Having a different directory structure requires a different search path, yes, but it could still work with exactly the same files, just stored in different places (namely, for a .desktop file found in an application folder on the SD card, it first looks in the same folder for the executable and the icon.)
I don't really see any benefit in absolute compliance, but compability could be nice.
If you want something more tailored, there's also Rox Desktop's application directories.
Come to think of it, if programs used an environment variable to tell where it's data directory was (set by the launcher when launching from a directory, default /usr/share), you could pretty much chuck the executable into /usr/bin, the data directory into /usr/share, and the .desktop file into /usr/share/applications, and you'd have a pretty standard Linux installation package that'd work on most newer distros and DEs. (Actually, freedesktop has the XDG base dir spec) That's probably not realistic, though.
Tangentially, how is the rest of the directory structure envisioned? Would applications store save games and settings in the home directory, or in their own dir on the card? Is the home directory stored on the card or in built-in memory?
peca said:Hmm, I like categories for quick sorting new apps. But you are right, only e few standard categories. But users must have an option to make their own categories. Or, maybe, whole idea about categories is wrong and user just sort SW someself.
yosh64 said:From what I understand, it sounds awefully misleading to say you would need to hack up the .desktop standard?wouldn't it just take a new entry, such as "directory" that conforms to the .desktop standards? (and request it be part of the standard)(already part of standard to specify the fullpath within Exec key, see below).
It seems you misread the specification and/or previous posts. PXML doesn't use a full path or use the $PATH variable, it uses a "relative to the directory the pxml document is stored" path.
yosh64 said:Also, if people are going to be putting stuff in any old directory (and maybe they shouldn't), then how does PXML solve this? and what would be the use of specifying an absolute directory, when it can be put anywhere? Hmm, I guess people would have to manually edit the specified absolute directory if they wanted to place it where they wanted.
Having to edit files because you installed the app in a directory different to the intended one is insane. PXML solves this by just unzipping the archive to whatever directory you see fit. The menu notices the file and parses as appropriate (See the spec).yosh64 said:One thing I particularly like about the PXML idea is the possibility to have packages as ZIP or maybe TAR.GZ???, so how is this going to be achieved?
Hmm, it will be achieved by simply zipping up your distribution directory along with a PXML file. To install, simple unpack to a directory of your choice and the menu will find it. Quick and easy for both the developer to knock out versions as he sees fit, and for anyone who wishes to install them. An installer will be provided, but of course, is not necessary (eg. if you wish to install apps to an SD card without having to turn the Pandora on)