comparison 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
comparison
equal deleted inserted replaced
16:60bc5117926c 17:a7b9f7e7dfa4
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # -*- coding: utf-8 -*- 2 # -*- coding: utf-8 -*-
3 ## File openwith.py 3 ## File openwith.py
4 ## This file is part of pyArq-Presupuestos. 4 ## This file is part of pyArq-Presupuestos.
5 ## 5 ##
6 ## Copyright (C) 2010 Miguel Ángel Bárcena Rodríguez 6 ## Copyright (C) 2010-2013 Miguel Ángel Bárcena Rodríguez
7 ## <miguelangel@obraencurso.es> 7 ## <miguelangel@obraencurso.es>
8 ## 8 ##
9 ## This file is based in gtkgui_helpers.py and common/helpers.py from gajim 9 ## This file is based in gtkgui_helpers.py and common/helpers.py from gajim
10 ## 10 ##
11 ## Copyright (C) 2003-2008 Yann Leboulanger <asterix AT lagaule.org> 11 ## Copyright (C) 2003-2008 Yann Leboulanger <asterix AT lagaule.org>
50 globalVars.desktop["desktop"] = "gnome" 50 globalVars.desktop["desktop"] = "gnome"
51 elif 'startkde' in _processes: 51 elif 'startkde' in _processes:
52 globalVars.desktop["desktop"] = "kde" 52 globalVars.desktop["desktop"] = "kde"
53 elif 'startxfce4' in _processes or 'xfce4-session' in _processes: 53 elif 'startxfce4' in _processes or 'xfce4-session' in _processes:
54 globalVars.desktop["desktop"] = "xfce" 54 globalVars.desktop["desktop"] = "xfce"
55 elif 'startlxde' in _processes or 'lxsession' in _processes:
56 globalVars.desktop["desktop"] = "lxde"
57 elif 'awesome' in _processes:
58 globalVars.desktop["desktop"] = "awesome"
59 elif 'dwm' in _processes:
60 globalVars.desktop["desktop"] = "dwm"
61 elif 'startfluxbox' in _processes:
62 globalVars.desktop["desktop"] = "fluxbox"
63 elif 'fvwm2' in _processes:
64 globalVars.desktop["desktop"] = "fvwm"
55 else: 65 else:
56 globalVars.desktop["desktop"] = "" 66 globalVars.desktop["desktop"] = ""
57 67
58 def get_running_processes(): 68 def get_running_processes():
59 '''returns running processes or None (if not /proc exists)''' 69 '''returns running processes or None (if not /proc exists)'''