diff Generic/openwith.py @ 17:a7b9f7e7dfa4

Improvements importing FIEBDC files
author Miguel Ángel Bárcena Rodríguez <miguelangel@obraencurso.es>
date Sat, 02 Nov 2013 19:26:09 +0100
parents 2fc6b47dbe70
children 65e7ae0d0e63
line wrap: on
line diff
--- a/Generic/openwith.py	Fri Apr 19 00:04:20 2013 +0200
+++ b/Generic/openwith.py	Sat Nov 02 19:26:09 2013 +0100
@@ -3,7 +3,7 @@
 ## File openwith.py
 ## This file is part of pyArq-Presupuestos.
 ##
-## Copyright (C) 2010 Miguel Ángel Bárcena Rodríguez
+## Copyright (C) 2010-2013 Miguel Ángel Bárcena Rodríguez
 ##                    <miguelangel@obraencurso.es>
 ##
 ## This file is based in gtkgui_helpers.py and common/helpers.py from gajim
@@ -52,6 +52,16 @@
             globalVars.desktop["desktop"] = "kde"
         elif 'startxfce4' in _processes or 'xfce4-session' in _processes:
             globalVars.desktop["desktop"] = "xfce"
+        elif 'startlxde' in _processes or 'lxsession' in _processes:
+            globalVars.desktop["desktop"] = "lxde"
+        elif 'awesome' in _processes:
+            globalVars.desktop["desktop"] = "awesome"
+        elif 'dwm' in _processes:
+            globalVars.desktop["desktop"] = "dwm"
+        elif 'startfluxbox' in _processes:
+            globalVars.desktop["desktop"] = "fluxbox"
+        elif 'fvwm2' in _processes:
+            globalVars.desktop["desktop"] = "fvwm"
         else:
             globalVars.desktop["desktop"] = ""