Just remove desktop/icon files starting with anbox-
This commit is contained in:
parent
e11afb46de
commit
3d3055e2de
2 changed files with 10 additions and 2 deletions
|
|
@ -39,8 +39,15 @@ LauncherStorage::LauncherStorage(const fs::path &path) :
|
|||
LauncherStorage::~LauncherStorage() {}
|
||||
|
||||
void LauncherStorage::reset() {
|
||||
if (fs::exists(path_))
|
||||
fs::remove_all(path_);
|
||||
if (fs::exists(path_)) {
|
||||
for(auto & p : boost::filesystem::directory_iterator(path_)) {
|
||||
if (fs::is_regular_file(p)){
|
||||
auto str = p.path().filename().string();
|
||||
if (boost::starts_with(str, "anbox-"))
|
||||
fs::remove(p);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::string LauncherStorage::clean_package_name(const std::string &package_name) {
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
#include <vector>
|
||||
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/algorithm/string/predicate.hpp>
|
||||
|
||||
namespace anbox {
|
||||
namespace application {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue