mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-25 20:25:54 +02:00
Accept meta-data named *.all.desktop in OPK files
This could be used to create platform-independent packages. It can be useful for instance in the case where the executable is a script, or when the package points to an executable that is present on all systems on which OPKs are supposed to run.
This commit is contained in:
parent
b6dfdc6ef5
commit
9dae4b76df
@ -494,7 +494,7 @@ void Menu::openPackage(std::string path, bool order)
|
||||
pos = metadata.rfind('.');
|
||||
metadata = metadata.substr(pos + 1);
|
||||
|
||||
if (metadata.compare(PLATFORM) == 0) {
|
||||
if (!metadata.compare(PLATFORM) || !metadata.compare("all")) {
|
||||
has_metadata = true;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user