From 854de8452ce8d453b37555a84786e3773278818b Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Thu, 28 Jun 2012 13:26:15 +0100 Subject: [PATCH] Improved XFCE/MATE detection --- usr/lib/linuxmint/mintMenu/mintMenu.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr/lib/linuxmint/mintMenu/mintMenu.py b/usr/lib/linuxmint/mintMenu/mintMenu.py index ba1eec6..7751bbd 100755 --- a/usr/lib/linuxmint/mintMenu/mintMenu.py +++ b/usr/lib/linuxmint/mintMenu/mintMenu.py @@ -217,6 +217,11 @@ class MainWindow( object ): de = os.environ["DESKTOP_SESSION"] if de in ["gnome", "gnome-shell", "mate", "kde", "xfce"]: self.de = de + else: + if os.path.exists("/usr/bin/caja"): + self.de = "mate" + elif os.path.exists("/usr/bin/thunar"): + self.de = "xfce" except Exception, detail: print detail