slackware-current/source/x/sddm/sddm.list.X11.sessions.before.Wayland.Sessions.diff

30 lines
1.2 KiB
Diff
Raw Normal View History

--- ./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 @@
// initial population
beginResetModel();
+ 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();
// refresh everytime a file is changed, added or removed
@@ -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() {