From 80b44c9c552ab61c2c8044e0713332996940482f Mon Sep 17 00:00:00 2001 From: Pandada8 Date: Fri, 8 May 2015 01:01:42 +0800 Subject: [PATCH] Use run_though_shell rather than subprocess --- i3pystatus/backlight.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/i3pystatus/backlight.py b/i3pystatus/backlight.py index 6261cf1..2bfa9e2 100644 --- a/i3pystatus/backlight.py +++ b/i3pystatus/backlight.py @@ -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"])