summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-06-21 19:23:30 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-06-21 19:26:05 -0400
commitd3d255753f3e1be25dc4426bd21926f1609ba31c (patch)
treeac182ae1505cc7ca6dd44b6f311697e8d33b668e
parent40bb2a5a08cea8f6998f4ed01e61f60da3c576da (diff)
use running_from_source_tree()
-rw-r--r--gtk2_ardour/pingback.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk2_ardour/pingback.cc b/gtk2_ardour/pingback.cc
index 07d9ff120e..0153fd45b1 100644
--- a/gtk2_ardour/pingback.cc
+++ b/gtk2_ardour/pingback.cc
@@ -40,6 +40,7 @@
#include "ardour/rc_configuration.h"
#include "pingback.h"
+#include "utils.h"
using std::string;
using namespace ARDOUR;
@@ -241,10 +242,10 @@ namespace ARDOUR {
void pingback (const string& version, const string& announce_path)
{
- /* check this is not being run from ./ardev etc. */
- gchar const *x = g_getenv ("ARDOUR_THEMES_PATH");
-
- if (x && string (x).find ("gtk2_ardour") != string::npos) {
+ if (ARDOUR_UI_UTILS::running_from_source_tree ()) {
+ /* we don't ping under these conditions, because the user is
+ probably just paul or robin :)
+ */
return;
}