When session list is empty, session chooser is not displayed even if /chooser/AlwaysDisplay is set
Hello!
If there are no sessions saved then session chooser is not displayed even if /chooser/AlwaysDisplay is set.
Steps to reproduce:
- Turn on Session and startup > General >"Display chooser on login" (this sets /chooser/AlwaysDisplay)
- Delete all saved sessions
- Logout without saving the session
- Now, login
I expected to see session chooser on login since I have set /chooser/AlwaysDisplay. The chooser could have presented empty list where user could create new custom session (by clicking "+" button in session chooser dialog).
Current behavior forces the session name "Default". Instead user could have created custom session if the session chooser was shown as user had set /chooser/AlwaysDisplay.
I believe https://gitlab.xfce.org/xfce/xfce4-session/-/blob/master/xfce4-session/xfsm-manager.c#L439 is the root of the issue.
Thanks!