From 161d473e673385a841663715f23224339da1adc6 Mon Sep 17 00:00:00 2001
From: Ruben Rodriguez <ruben@trisquel.info>
Date: Fri, 27 Mar 2015 21:46:59 +0000
Subject: [PATCH] Check if compton is running for the current user

---
 helpers/DATA/compton/trisquel-compton-switcher | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helpers/DATA/compton/trisquel-compton-switcher b/helpers/DATA/compton/trisquel-compton-switcher
index 541774a6..107f9e69 100644
--- a/helpers/DATA/compton/trisquel-compton-switcher
+++ b/helpers/DATA/compton/trisquel-compton-switcher
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 #Check if compton is currently running.
-case "$(pidof compton | wc -w)" in
+case "$(pgrep -u $USER compton | wc -w)" in
     
     0)  COMPTON_RUNNING=false
 	;;
-- 
GitLab