import jalview.bin.Cache;
import jalview.bin.Console;
-import jalview.bin.Jalview;
import jalview.util.ChannelProperties;
import jalview.util.HttpUtils;
private static final String CONFIG_API_BASE_URL = "https://www.jalview.org/config/analytics/url";
- private static final String DEFAULT_API_BASE_URL = "https://DEFAULT.plausible.io/api/event";
+ private static final String DEFAULT_API_BASE_URL = "https://plausible.io/api/event";
private static final String API_BASE_URL;
System.getProperty("os.arch") + " "
+ System.getProperty("os.name") + " "
+ System.getProperty("os.version"));
+ defaultProps.put("os", System.getProperty("os.name"));
+ defaultProps.put("os_version", System.getProperty("os.version"));
+ defaultProps.put("os_arch", System.getProperty("os.arch"));
String installation = Cache.applicationProperties
.getProperty("INSTALLATION");
if (installation != null)
if (sendDefaultProps)
{
props.putAll(defaultProps);
- if (Jalview.isHeadlessMode())
- {
- props.put("headless", "true");
- }
}
// add (and overwrite with) the passed in props