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
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
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