From f3d7fb5461c114c187dbd7213edf26802ab49bd1 Mon Sep 17 00:00:00 2001 From: Alexander 'ccntrq' Pankoff Date: Tue, 21 Jul 2026 08:25:11 +0200 Subject: Add warning when Accordion runs without the threaded RTS The Accordion plugin open the click event FIFO before starting its plugins. With the non threaded RTS this blocking open blocks the only execution thread, leading to the plugin permanently displaying `Updating...`. With this commit the Accordion plugin wil check for the presence of a threaded RTS using `rtsSupportsBoundThreads`. When the threaded RTS is not available a warning is displayed instead, prompting the user to recompile with `-threaded`. --- doc/plugins.org | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/plugins.org b/doc/plugins.org index ecc9507..73753b5 100644 --- a/doc/plugins.org +++ b/doc/plugins.org @@ -1469,6 +1469,10 @@ - Aliases to =alias' tuning=, being =tuning= of type =Tuning=, so one can use multiple such "accordions" - **Disclaimer**: This only works for Haskell =xmobar.hs= + - The final executable must be compiled with GHC's threaded runtime by + passing =-threaded=. Without it, the blocking FIFO used for click events + would prevent the wrapped plugins from starting; =Accordion= instead + displays a warning and writes it to standard error. - =Tuning=: the "settings", for which a default value is provided, #+begin_src haskell defaultTuning = Tuning { -- cgit v1.2.3