2023-07-16 22:35:56 +02:00
|
|
|
--- ./src/greeter/SessionModel.cpp.orig 2023-06-23 07:28:38.000000000 -0500
|
|
|
|
+++ ./src/greeter/SessionModel.cpp 2023-07-16 14:56:32.741943650 -0500
|
|
|
|
@@ -46,9 +46,9 @@
|
|
|
|
|
2021-04-27 00:04:20 +02:00
|
|
|
// initial population
|
|
|
|
beginResetModel();
|
2023-07-16 22:35:56 +02:00
|
|
|
+ populate(Session::X11Session, mainConfig.X11.SessionDir.get());
|
|
|
|
if (dri_active)
|
|
|
|
populate(Session::WaylandSession, mainConfig.Wayland.SessionDir.get());
|
|
|
|
- populate(Session::X11Session, mainConfig.X11.SessionDir.get());
|
2021-04-27 00:04:20 +02:00
|
|
|
endResetModel();
|
|
|
|
|
|
|
|
// refresh everytime a file is changed, added or removed
|
2023-07-16 22:35:56 +02:00
|
|
|
@@ -59,13 +59,13 @@
|
|
|
|
beginResetModel();
|
|
|
|
d->sessions.clear();
|
|
|
|
d->displayNames.clear();
|
|
|
|
+ populate(Session::X11Session, mainConfig.X11.SessionDir.get());
|
|
|
|
if (dri_active)
|
|
|
|
populate(Session::WaylandSession, mainConfig.Wayland.SessionDir.get());
|
|
|
|
- populate(Session::X11Session, mainConfig.X11.SessionDir.get());
|
|
|
|
endResetModel();
|
|
|
|
});
|
|
|
|
- watcher->addPaths(mainConfig.Wayland.SessionDir.get());
|
|
|
|
watcher->addPaths(mainConfig.X11.SessionDir.get());
|
|
|
|
+ watcher->addPaths(mainConfig.Wayland.SessionDir.get());
|
|
|
|
}
|
|
|
|
|
|
|
|
SessionModel::~SessionModel() {
|