$OpenBSD: patch-spyder_config_utils_py,v 1.2 2019/02/23 17:57:43 mariani Exp $

Index: spyder/config/utils.py
--- spyder/config/utils.py.orig
+++ spyder/config/utils.py
@@ -162,7 +162,7 @@ def get_edit_extensions():
 #==============================================================================
 def is_ubuntu():
     """Detect if we are running in an Ubuntu-based distribution"""
-    if sys.platform.startswith('linux') and osp.isfile('/etc/lsb-release'):
+    if sys.platform.startswith(('linux','openbsd')) and osp.isfile('/etc/lsb-release'):
         release_info = open('/etc/lsb-release').read()
         if 'Ubuntu' in release_info:
             return True
@@ -174,7 +174,7 @@ def is_ubuntu():
 
 def is_gtk_desktop():
     """Detect if we are running in a Gtk-based desktop"""
-    if sys.platform.startswith('linux'):
+    if sys.platform.startswith(('linux', 'openbsd')):
         xdg_desktop = os.environ.get('XDG_CURRENT_DESKTOP', '')
         if xdg_desktop:
             gtk_desktops = ['Unity', 'GNOME', 'XFCE']
@@ -190,7 +190,7 @@ def is_gtk_desktop():
 
 def is_kde_desktop():
     """Detect if we are running in a KDE desktop"""
-    if sys.platform.startswith('linux'):
+    if sys.platform.startswith(('linux', 'openbsd')):
         xdg_desktop = os.environ.get('XDG_CURRENT_DESKTOP', '')
         if xdg_desktop:
             if 'KDE' in xdg_desktop:
