$OpenBSD$

Index: spyder/config/base.py
--- spyder/config/base.py.orig
+++ spyder/config/base.py
@@ -83,7 +83,7 @@ def debug_print(*message):
 # since 3.0+ we've reverted back to use .spyder to simplify major
 # updates in version (required when we change APIs by Linux
 # packagers)
-if sys.platform.startswith('linux'):
+if sys.platform.startswith(('linux', 'openbsd')):
     SUBFOLDER = 'spyder'
 else:
     SUBFOLDER = '.spyder'
@@ -130,7 +130,7 @@ def get_conf_path(filename=None):
         conf_dir = osp.join(str(py.path.local.get_temproot()),
                             'pytest-of-{}'.format(get_user()),
                             SUBFOLDER)
-    elif sys.platform.startswith('linux'):
+    elif sys.platform.startswith(('linux', 'openbsd')):
         # This makes us follow the XDG standard to save our settings
         # on Linux, as it was requested on Issue 2629
         xdg_config_home = os.environ.get('XDG_CONFIG_HOME', '')
