$OpenBSD: patch-spyder_config_base_py,v 1.2 2021/02/26 18:20:32 naddy Exp $

Index: spyder/config/base.py
--- spyder/config/base.py.orig
+++ spyder/config/base.py
@@ -85,7 +85,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'
@@ -153,7 +153,7 @@ def get_conf_path(filename=None):
     if running_under_pytest() or SAFE_MODE:
         # Use clean config dir if running tests or the user requests it.
         conf_dir = get_clean_conf_dir()
-    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', '')
