Changeset 8329


Ignore:
Timestamp:
Dec 17, 2018, 5:28:36 PM (5 weeks ago)
Author:
hectorgh
Message:

relaunching dock if its currently not running

Location:
lliurex-perfilreset/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-perfilreset/trunk/fuentes/debian/changelog

    r7827 r8329  
     1lliurex-perfilreset (0.5) xenial; urgency=high
     2
     3  * Relaunching dock if its not running
     4
     5 -- Hector Garcia Huerta <hectorgh@gmail.com>  Mon, 17 Dec 2018 17:27:52 +0100
     6
    17lliurex-perfilreset (0.4.2) xenial; urgency=high
    28
  • lliurex-perfilreset/trunk/fuentes/lliurex-perfilreset.install/usr/sbin/lliurex-perfilreset

    r7061 r8329  
    55import os.path
    66import shutil
     7from gi.repository import Gio
    78
    89
     
    2930        copy_and_overwrite(skel_panel, local_panel)
    3031
     32#Relaunch dock if it isn't active
     33try:
     34        settings = Gio.Settings("org.mate.session.required-components")
     35        dock=settings.get_string("dock")
     36        if len(dock) > 0:
     37                ret=os.system("ps aux | grep $USER | grep %s | grep -v grep"%dock)
     38                if ret!=0:
     39                        os.system("%s &"%dock)
     40except:
     41       
     42        pass
     43
     44
    3145#print ("FIN")
    3246       
Note: See TracChangeset for help on using the changeset viewer.