mirror of
https://github.com/labwc/labwc.git
synced 2026-06-13 14:33:18 -04:00
add logger for config errors and <core><errorCommand> to display it.
This commit is contained in:
parent
477b3b1ddb
commit
4efb63f7da
10 changed files with 233 additions and 11 deletions
|
|
@ -180,6 +180,7 @@ this is for compatibility with Openbox.
|
|||
<xwaylandPersistence>no</xwaylandPersistence>
|
||||
<primarySelection>yes</primarySelection>
|
||||
<promptCommand>[see details below]</promptCommand>
|
||||
<errorCommand>[see details below]</errorCommand>
|
||||
</core>
|
||||
```
|
||||
|
||||
|
|
@ -316,6 +317,29 @@ this is for compatibility with Openbox.
|
|||
--cancel-label="%n"
|
||||
```
|
||||
|
||||
*<core><errorCommand>*
|
||||
Set command to be invoked for displaying errors in the config files,
|
||||
it is executed when errors are detected on startup and reconfigure.
|
||||
The errors are sent to STDIN of the program, and a SIGTERM is sent to
|
||||
it if the process is still running when a reconfigure is triggered.
|
||||
|
||||
The default error command is:
|
||||
```
|
||||
labnag \\
|
||||
--message 'Config Error' \\
|
||||
--button-dismiss 'Close' \\
|
||||
--layer overlay \\
|
||||
--timeout 0 \\
|
||||
--detailed-message
|
||||
```
|
||||
|
||||
Example using `zenity`:
|
||||
```
|
||||
<core>
|
||||
<errorCommand>zenity --title='Config Error' --text-info</errorCommand>
|
||||
</core>
|
||||
```
|
||||
|
||||
## PLACEMENT
|
||||
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue