diff options
| author | Alexander 'ccntrq' Pankoff <ccntrq@screenri.de> | 2026-07-21 08:25:11 +0200 |
|---|---|---|
| committer | Alexander 'ccntrq' Pankoff <ccntrq@screenri.de> | 2026-07-21 08:39:12 +0200 |
| commit | f3d7fb5461c114c187dbd7213edf26802ab49bd1 (patch) | |
| tree | 73385328942910c52b2d74770436bf59d422139b /doc | |
| parent | 4d9b817e1654d75744f37fd3c27f91b37971d8ec (diff) | |
| download | xmobar-f3d7fb5461c114c187dbd7213edf26802ab49bd1.tar.gz xmobar-f3d7fb5461c114c187dbd7213edf26802ab49bd1.tar.bz2 | |
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`.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/plugins.org | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |
