13
0

use running_from_source_tree()

This commit is contained in:
Paul Davis 2016-06-21 19:23:30 -04:00
parent 40bb2a5a08
commit d3d255753f

View File

@ -40,6 +40,7 @@
#include "ardour/rc_configuration.h" #include "ardour/rc_configuration.h"
#include "pingback.h" #include "pingback.h"
#include "utils.h"
using std::string; using std::string;
using namespace ARDOUR; using namespace ARDOUR;
@ -241,10 +242,10 @@ namespace ARDOUR {
void pingback (const string& version, const string& announce_path) void pingback (const string& version, const string& announce_path)
{ {
/* check this is not being run from ./ardev etc. */ if (ARDOUR_UI_UTILS::running_from_source_tree ()) {
gchar const *x = g_getenv ("ARDOUR_THEMES_PATH"); /* we don't ping under these conditions, because the user is
probably just paul or robin :)
if (x && string (x).find ("gtk2_ardour") != string::npos) { */
return; return;
} }