Add /usr/share/nodeboxeditor to resources search path
parent
adf8398fa8
commit
7ade9b1b2d
|
@ -34,6 +34,13 @@ void findWorkingDirectory(bool &editor_is_installed)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
chdir("/usr/share/nodeboxeditor");
|
||||||
|
if (FileExists("media/sky.jpg")) {
|
||||||
|
std::cerr << "Is installed!";
|
||||||
|
editor_is_installed = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
chdir("/usr/local/share/nodeboxeditor");
|
chdir("/usr/local/share/nodeboxeditor");
|
||||||
if (FileExists("media/sky.jpg")) {
|
if (FileExists("media/sky.jpg")) {
|
||||||
std::cerr << "Is installed!";
|
std::cerr << "Is installed!";
|
||||||
|
|
Loading…
Reference in New Issue