Skip to content

Commit

Permalink
fix desktop icon location & upgrade to 0.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhuai committed Aug 5, 2021
1 parent eebc4d6 commit 5d7b1ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project(odourless)

set(CMAKE_CXX_STANDARD 11)

set(ODOURLESS_VERSION 0.0.8)
set(ODOURLESS_VERSION 0.0.9)

set(CMAKE_OSX_DEPLOYMENT_TARGET 10.12)

Expand Down
8 changes: 4 additions & 4 deletions src/inject-lib/strategy/asepsis_strategy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static int replacement_open(const char *path, int flags, mode_t mode) {
if (DSStoreHelper::isDSStore(path)) {
fakePath = DSStoreHelper::makeCagePath(path);
if (FileSystemHelper::ensureDir(FileSystemHelper::getDirectory(fakePath), 0755, true)) {
if (FileSystemHelper::exists(path)) {
if (FileSystemHelper::exists(path) && !FileSystemHelper::exists(fakePath)) {
FileSystemHelper::rename(path, fakePath);
}
LOG("open: %s ---> %s", path, fakePath);
Expand All @@ -45,7 +45,7 @@ static int replacement_openx_np(const char *path, int flags, filesec_t fsec) {
if (DSStoreHelper::isDSStore(path)) {
fakePath = DSStoreHelper::makeCagePath(path);
if (FileSystemHelper::ensureDir(FileSystemHelper::getDirectory(fakePath), 0755, true)) {
if (FileSystemHelper::exists(path)) {
if (FileSystemHelper::exists(path) && !FileSystemHelper::exists(fakePath)) {
FileSystemHelper::rename(path, fakePath);
}
LOG("openx_np: %s ---> %s", path, fakePath);
Expand All @@ -60,7 +60,7 @@ static int replacement_getattrlist(const char *path, void *list, void *buf, size
if (DSStoreHelper::isDSStore(path)) {
fakePath = DSStoreHelper::makeCagePath(path);
if (FileSystemHelper::ensureDir(FileSystemHelper::getDirectory(fakePath), 0755, true)) {
if (FileSystemHelper::exists(path)) {
if (FileSystemHelper::exists(path) && !FileSystemHelper::exists(fakePath)) {
FileSystemHelper::rename(path, fakePath);
}
LOG("getattrlist: %s ---> %s", path, fakePath);
Expand All @@ -75,7 +75,7 @@ static int replacement_setattrlist(const char *path, void *list, void *buf, size
if (DSStoreHelper::isDSStore(path)) {
fakePath = DSStoreHelper::makeCagePath(path);
if (FileSystemHelper::ensureDir(FileSystemHelper::getDirectory(fakePath), 0755, true)) {
if (FileSystemHelper::exists(path)) {
if (FileSystemHelper::exists(path) && !FileSystemHelper::exists(fakePath)) {
FileSystemHelper::rename(path, fakePath);
}
LOG("setattrlist: %s ---> %s", path, fakePath);
Expand Down

0 comments on commit 5d7b1ac

Please sign in to comment.