Skip to content
This repository has been archived by the owner on Dec 3, 2020. It is now read-only.

Commit

Permalink
Add /usr/share/nodeboxeditor to resources search path
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed May 5, 2018
1 parent adf8398 commit 7ade9b1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ void findWorkingDirectory(bool &editor_is_installed)
return;
}

chdir("/usr/share/nodeboxeditor");
if (FileExists("media/sky.jpg")) {
std::cerr << "Is installed!";
editor_is_installed = true;
return;
}

chdir("/usr/local/share/nodeboxeditor");
if (FileExists("media/sky.jpg")) {
std::cerr << "Is installed!";
Expand Down

0 comments on commit 7ade9b1

Please sign in to comment.