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

Commit 7ade9b1

Browse files
committed
Add /usr/share/nodeboxeditor to resources search path
1 parent adf8398 commit 7ade9b1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ void findWorkingDirectory(bool &editor_is_installed)
3434
return;
3535
}
3636

37+
chdir("/usr/share/nodeboxeditor");
38+
if (FileExists("media/sky.jpg")) {
39+
std::cerr << "Is installed!";
40+
editor_is_installed = true;
41+
return;
42+
}
43+
3744
chdir("/usr/local/share/nodeboxeditor");
3845
if (FileExists("media/sky.jpg")) {
3946
std::cerr << "Is installed!";

0 commit comments

Comments
 (0)