1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-25 16:17:10 +02:00

For now, consider non-deletable applications to be immutable

In the future, we could make them editable by saving a companion file
in the home directory, similar to how OPKs can be customized.
This commit is contained in:
Maarten ter Huurne 2014-08-18 23:25:57 +02:00
parent 5805d7889f
commit e827b2f18c

View File

@ -214,8 +214,14 @@ LinkApp::LinkApp(GMenu2X *gmenu2x_, string const& linkfile, bool deletable)
file = gmenu2x->getHome() + "/sections/" + category + '/' + opkMount;
opkMount = (string) "/mnt/" + opkMount + '/';
edited = true;
}
} else
#endif /* HAVE_LIBOPK */
{
// Non-packaged application.
// Consider non-deletable applications to be immutable.
editable = deletable;
}
string line;
ifstream infile (file.c_str(), ios_base::in);