Add /usr/share/nodeboxeditor to resources search path

master
rubenwardy 2018-05-05 20:34:26 +01:00
parent adf8398fa8
commit 7ade9b1b2d
No known key found for this signature in database
GPG Key ID: A1E29D52FF81513C
1 changed files with 7 additions and 0 deletions

View File

@ -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!";