blob: 618b3d7153ed62e655b0259da0c57edad18ba599 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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();
}
|