aboutsummaryrefslogtreecommitdiff
path: root/system/lxqt-admin/bash-shell-default.patch
diff options
context:
space:
mode:
authorIsaac Yu <isaacyu@protonmail.com>2024-07-21 21:20:23 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-07-22 06:28:34 +0700
commitb8779ef9a57d82a9e10ccac79a3f170ac8b13c67 (patch)
tree50996db49614f82a9301c8fe9c29f43473544936 /system/lxqt-admin/bash-shell-default.patch
parent7d9fbc2daef1c9f5cd101ab8b76668701bdfdf47 (diff)
system/lxqt-admin: Added (LXQt system administration tool).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/lxqt-admin/bash-shell-default.patch')
-rw-r--r--system/lxqt-admin/bash-shell-default.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/system/lxqt-admin/bash-shell-default.patch b/system/lxqt-admin/bash-shell-default.patch
new file mode 100644
index 0000000000..618b3d7153
--- /dev/null
+++ b/system/lxqt-admin/bash-shell-default.patch
@@ -0,0 +1,16 @@
+--- a/lxqt-admin-user/usermanager.cpp
++++ b/lxqt-admin-user/usermanager.cpp
+@@ -436,7 +436,12 @@
+ QByteArray line = file.readLine().trimmed();
+ if(line.isEmpty() || line.startsWith('#'))
+ continue;
+- mAvailableShells.append(QString::fromLocal8Bit(line));
++ QString shell = QString::fromLocal8Bit(line);
++ if (shell.endsWith(QLatin1String("/bash")) ) {
++ mAvailableShells.prepend(shell);
++ } else {
++ mAvailableShells.append(shell);
++ }
+ }
+ file.close();
+ }