mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 17:51:34 +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:
parent
5805d7889f
commit
e827b2f18c
@ -214,8 +214,14 @@ LinkApp::LinkApp(GMenu2X *gmenu2x_, string const& linkfile, bool deletable)
|
|||||||
file = gmenu2x->getHome() + "/sections/" + category + '/' + opkMount;
|
file = gmenu2x->getHome() + "/sections/" + category + '/' + opkMount;
|
||||||
opkMount = (string) "/mnt/" + opkMount + '/';
|
opkMount = (string) "/mnt/" + opkMount + '/';
|
||||||
edited = true;
|
edited = true;
|
||||||
}
|
} else
|
||||||
#endif /* HAVE_LIBOPK */
|
#endif /* HAVE_LIBOPK */
|
||||||
|
{
|
||||||
|
// Non-packaged application.
|
||||||
|
|
||||||
|
// Consider non-deletable applications to be immutable.
|
||||||
|
editable = deletable;
|
||||||
|
}
|
||||||
|
|
||||||
string line;
|
string line;
|
||||||
ifstream infile (file.c_str(), ios_base::in);
|
ifstream infile (file.c_str(), ios_base::in);
|
||||||
|
Loading…
Reference in New Issue
Block a user