use running_from_source_tree()
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 21 Jun 2016 23:23:30 +0000 (19:23 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 21 Jun 2016 23:26:05 +0000 (19:26 -0400)
gtk2_ardour/pingback.cc

index 07d9ff120ec30b6211d0fc53c1169be6275f4f23..0153fd45b1ffc62ed1290b39a63d8c39ac325cef 100644 (file)
@@ -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;
        }