From e827b2f18c65a048488af5d0da66e2f46d77b438 Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Mon, 18 Aug 2014 23:25:57 +0200 Subject: [PATCH] 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. --- src/linkapp.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/linkapp.cpp b/src/linkapp.cpp index aa12194..cbbe82e 100644 --- a/src/linkapp.cpp +++ b/src/linkapp.cpp @@ -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);