diff --git a/src/leap/bitmask/core/__init__.py b/src/leap/bitmask/core/__init__.py
index 644441f611c1495ad90da276c0bd458452bf3227..9b11007cd28ace9e7a8cda667c897c389ed843bc 100644
--- a/src/leap/bitmask/core/__init__.py
+++ b/src/leap/bitmask/core/__init__.py
@@ -1,4 +1,5 @@
 import platform
+import os
 
 # FIXME some temporary imports to make the modules
 # appear in the coverage report. Remove the imports when
@@ -18,6 +19,8 @@ def dummy_imports():
 APPNAME = "bitmask.core"
 if platform.system() == 'Windows':
     ENDPOINT = "tcp://127.0.0.1:5001"
+elif os.getenv('SNAP'):
+    ENDPOINT = "ipc://%s/%s.sock" % (os.getenv('SNAP'), APPNAME)
 else:
     ENDPOINT = "ipc:///tmp/%s.sock" % APPNAME