Ejemplo n.º 1
0
 def set_desktop_compositing(self, enable):
     if enable:
         system.execute(self.start_compositor, shell=True)
     else:
         self.start_compositor, self.stop_compositor = display.get_compositor_commands()
         if not (self.compositor_disabled or not self.stop_compositor):
             system.execute(self.stop_compositor, shell=True)
             self.compositor_disabled = True
Ejemplo n.º 2
0
 def set_desktop_compositing(self, enable):
     """Enables or disables compositing"""
     if enable:
         system.execute(self.start_compositor, shell=True)
     else:
         self.start_compositor, self.stop_compositor = (
             display.get_compositor_commands()
         )
         if not (self.compositor_disabled or not self.stop_compositor):
             system.execute(self.stop_compositor, shell=True)
             self.compositor_disabled = True
Ejemplo n.º 3
0
 def set_desktop_compositing(self, enable):
     """Enables or disables compositing"""
     if enable:
         system.execute(self.start_compositor, shell=True)
     else:
         (
             self.start_compositor,
             self.stop_compositor,
         ) = get_compositor_commands()
         if not (self.compositor_disabled or not self.stop_compositor):
             system.execute(self.stop_compositor, shell=True)
             self.compositor_disabled = True