diff --git a/man/lektor.template b/man/lektor.template index 511fda3a77590c1e2996a20dbe70719b6eef0e14..c9e36090c651003379a6c6c0a2a8106b5ce479ec 100644 --- a/man/lektor.template +++ b/man/lektor.template @@ -50,6 +50,28 @@ You may install lektor from source like this: .P .RE +.SH "ENVIRONEMENT VARIABLES" +When launching \fBlektord\fP and \fBlkt\fP, some environement variable can be +passed to modify their behaviour. +.PP +.PD 0 +.TP +.PD +\fB__LKT_RESTART\fP +Must be non empry to specify to \fBlektord\fP that it is restarting, you should +not set this variable manually unless you know what you are doing. +.TP +\fB__LKT_CURRENT\fP +Used to specify at which position the \fBlektord\fP daemon must restart. The +\fB__LKT_RESTART\fP variable must be set for \fB__LKT_CURRENT\fP variable to +do something. +.TP +\fB__LKT_SET_ASSERT\fP +When built in debug mode (the \fBNDEBUG\fP macro is not defined at compile +time), it is possible to enable asserts by setting this variable to anything +that is not a null string or empty string. By default, asserts are not enabled +in \fBlektord\fP and \fBlkt\fP. + .SH "SUPPORTED URIS" When searching the database, the following URIs are supported by lektor. Those URIs are hidden, you should not use them, but here is some documentation about @@ -58,31 +80,24 @@ them. .PD 0 .TP .PD -\(bu \fBid://${arg}\fP the \fBarg\fP should be the id of the kara in the sqlite3 database. .TP -\(bu \fBlang://${arg}\fP the \fBarg\fP should be the language of the kara. .TP -\(bu \fBtype://${arg}\fP the \fBarg\fP should be the type of the kara. .TP -\(bu \fBcategory://${arg}\fP the \fBarg\fP should be the category of the kara. .TP -\(bu \fBauthor://${arg}\fP the \fBarg\fP should be the author of the kara. .TP -\(bu \fBplaylist://${plt-name}\fP The \fBplt-name\fP should be the name of a playlist. .TP -\(bu \fBquery://${arg}\fP the \fBarg\fP should be a sqlite3 query. The formating string on which the query is applied is like \fB"${cat}/${source} - ${type}${song_num?} - ${title}"\fP.