Use run_though_shell rather than subprocess

This commit is contained in:
Pandada8 2015-05-08 01:01:42 +08:00
parent 0a3241ac30
commit 80b44c9c55

View File

@ -1,7 +1,7 @@
from i3pystatus.file import File
from i3pystatus import Module
from i3pystatus.core.command import run_through_shell
import shutil
import subprocess
class Backlight(File):
@ -45,8 +45,8 @@ class Backlight(File):
def lighter(self):
if self.has_xbacklight:
subprocess.Popen(["xbacklight", "+5"])
run_through_shell(["xbacklight", "+5"])
def darker(self):
if self.has_xbacklight:
subprocess.Popen(["xbacklight", "-5"])
run_through_shell(["xbacklight", "-5"])