Add /usr/share/nodeboxeditor to resources search path
This commit is contained in:
parent
adf8398fa8
commit
7ade9b1b2d
@ -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!";
|
||||
|
Loading…
x
Reference in New Issue
Block a user