diff options
author | jao <jao@gnu.org> | 2024-02-18 21:44:54 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2024-02-18 21:46:07 +0000 |
commit | 991a168de5d79314a1346a24c579c5049208b054 (patch) | |
tree | 88a23b4b1c7b97dce5d441235ccf500660f7458a | |
parent | c4083055d20d4383f8da6517d0feeee788d2301a (diff) | |
download | xmobar-991a168de5d79314a1346a24c579c5049208b054.tar.gz xmobar-991a168de5d79314a1346a24c579c5049208b054.tar.bz2 |
battery: spawnCommand instead of system when running actions0.47.4
should fix for real #688 this time
-rw-r--r-- | src/Xmobar/Plugins/Monitors/Batt/Common.hs | 6 | ||||
-rw-r--r-- | xmobar.cabal | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Xmobar/Plugins/Monitors/Batt/Common.hs b/src/Xmobar/Plugins/Monitors/Batt/Common.hs index 3262b78..a07ba8b 100644 --- a/src/Xmobar/Plugins/Monitors/Batt/Common.hs +++ b/src/Xmobar/Plugins/Monitors/Batt/Common.hs @@ -1,7 +1,7 @@ ----------------------------------------------------------------------------- -- | -- Module : Plugins.Monitors.Batt.Common --- Copyright : (c) 2010, 2011, 2012, 2013, 2015, 2016, 2018, 2019 Jose A Ortega +-- Copyright : (c) 2010-2016, 2018, 2019, 2024 Jose A Ortega -- (c) 2010 Andrea Rossato, Petr Rockai -- License : BSD-style (see LICENSE) -- @@ -18,7 +18,7 @@ module Xmobar.Plugins.Monitors.Batt.Common (BattOpts(..) , Status(..) , maybeAlert) where -import System.Process (system) +import System.Process (spawnCommand) import Control.Monad (unless, void) import Xmobar.Plugins.Monitors.Common @@ -54,4 +54,4 @@ maybeAlert opts left = case onLowAction opts of Nothing -> return () Just x -> unless (isNaN left || actionThreshold opts < 100 * left) - $ void $ system x + $ void $ spawnCommand x diff --git a/xmobar.cabal b/xmobar.cabal index b5f9ba6..b8bdd79 100644 --- a/xmobar.cabal +++ b/xmobar.cabal @@ -1,5 +1,5 @@ name: xmobar -version: 0.47.3 +version: 0.47.4 homepage: https://codeberg.org/xmobar/xmobar synopsis: A Minimalistic Text Based Status Bar description: Xmobar is a minimalistic text based status bar. |