1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-07-04 20:40:44 +03: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:
Paul Cercueil 2013-07-19 14:41:17 -04:00
parent b6dfdc6ef5
commit 9dae4b76df

View File

@ -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;
}