From 32eff0d66dc8f1e89a0ae38c6aa2f36f145a9f95 Mon Sep 17 00:00:00 2001 From: stefonarch Date: Fri, 24 Jan 2025 11:37:54 +0100 Subject: [PATCH] Removed display of broken option --- lxqt-session/man/lxqt-session.1 | 10 +++++++++- lxqt-session/src/main.cpp | 4 +--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/lxqt-session/man/lxqt-session.1 b/lxqt-session/man/lxqt-session.1 index 5c516014..8b27f800 100644 --- a/lxqt-session/man/lxqt-session.1 +++ b/lxqt-session/man/lxqt-session.1 @@ -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 Window manager to use. + .SH DESCRIPTION This module handles starting applications under LXQt .P diff --git a/lxqt-session/src/main.cpp b/lxqt-session/src/main.cpp index 16849399..687c4092 100644 --- a/lxqt-session/src/main.cpp +++ b/lxqt-session/src/main.cpp @@ -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);