Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion lxqt-session/man/lxqt-session.1
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@
\fBlxqt-session\fR \- Session manager of \fBLXQt\fR: The Lightweight Qt Desktop
Environment
.SH SYNOPSIS
.B lxqt-session
.B lxqt-session [OPTION]
.SH OPTIONS
-v, --version Displays version information.
.br
-h, --help Displays help on commandline options.
.br
--help-all Displays help, including generic Qt options.
.br
-w, --window-manager <path> Window manager to use.

.SH DESCRIPTION
This module handles starting applications under LXQt
.P
Expand Down
4 changes: 1 addition & 3 deletions lxqt-session/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,12 @@ int main(int argc, char **argv)
"\nliblxqt " LXQT_VERSION
"\nQt " QT_VERSION_STR);
app.setApplicationVersion(VERINFO);
const QCommandLineOption config_opt{{QSL("c"), QSL("config")}, SessionApplication::tr("Configuration file path."), SessionApplication::tr("file")};
const QCommandLineOption wm_opt{{QSL("w"), QSL("window-manager")}, SessionApplication::tr("Window manager to use."), SessionApplication::tr("file")};
const auto version_opt = parser.addVersionOption();
const auto help_opt = parser.addHelpOption();
parser.addOptions({config_opt, wm_opt});
parser.addOptions({wm_opt});
parser.process(app);

app.setConfigName(parser.value(config_opt));
app.setWindowManager(parser.value(wm_opt));

app.setQuitOnLastWindowClosed(false);
Expand Down