Skip to content

Commit 77f1a5d

Browse files
bjacquotplfiorini
authored andcommitted
Make the Xorg server arguments configurable
1 parent d18d640 commit 77f1a5d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/common/Configuration.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ namespace SDDM {
5454
// TODO: Not absolutely sure if everything belongs here. Xsessions, VT and probably some more seem universal
5555
Section(XDisplay,
5656
Entry(ServerPath, QString, _S("/usr/bin/X"), _S("X server path"));
57+
Entry(ServerArguments, QString, _S(""), _S("X server arguments"));
5758
Entry(XephyrPath, QString, _S("/usr/bin/Xephyr"), _S("Xephyr path"));
5859
Entry(XauthPath, QString, _S("/usr/bin/xauth"), _S("Xauth path"));
5960
Entry(SessionDir, QString, _S("/usr/share/xsessions"), _S("Session description directory"));

src/daemon/XorgDisplayServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ namespace SDDM {
154154
}
155155

156156
// start display server
157-
QStringList args;
157+
QStringList args = mainConfig.XDisplay.ServerArguments.get().split(" ", QString::SkipEmptyParts);
158158
args << "-auth" << m_authPath
159159
<< "-nolisten" << "tcp"
160160
<< "-background" << "none"

0 commit comments

Comments
 (0)