You are not logged in.
When I use the TTY log in option with startx in Lithium, the dialog bl-exit box does not come up from neither the menu, or the key combo super+x.
It comes up in terminal though, with seven different options to choose from. The normal bl-exit box called from the menu or the right click menu gives five different options. I guess this is meant to be?
This is not a problem in Helium. Thank you.
Last edited by dolly (2019-11-24 16:22:24)
Offline
Thanks for posting this as @johnraff requested!
I don't care what you do at home. Would you care to explain?
Offline
Thanks dolly - bug confirmed. Entering 'bl-exit' in gmrun's box also fails.
"Exit" in the menu gives this error message in~/.xsession-errors:
/usr/bin/bl-exit: No exit option passed,
and unable to display exit menu.
That's a start, anyway...
(The terminal options are meant to be different - that's OK. And good to know that the terminal is still available to shut down.)
---
Few minutes later:
OK the problem is in the test bl-exit uses for whether its on a graphical session or not.
https://github.com/BunsenLabs/bunsen-ex … -exit#L142
This command:
loginctl show-session -p Type $XDG_SESSION_ID
returns "Type=tty" even when running an X session, if it's been started from a tty via "startx".
I'll have a look and see if there's a better test...
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Replacing on_graphical_session() in bl-exit with this:
on_graphical_session(){
[[ -n $DISPLAY || -n $WAYLAND_DISPLAY ]] && return 0
return 1
}
seems to fix the issue. Testing for $DISPLAY might be a bit fragile, but I couldn't find anything better that also worked with sessions launched from startx.
Only web reference I could find that seemed a bit relevant: https://gitlab.gnome.org/GNOME/gtk/issues/1741
Anyway, till something better comes up, let's go with this in bl-exit.
And thanks again dolly, for finding the bug.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
You are welcome, glad to be of some help.
Offtopic; Boot time (grub timeout set to one second) @Lithium worktop with brand new ssd 15 seconds
Last edited by dolly (2019-10-29 06:49:51)
Offline
Oooops once again! I had completely pushed this out of my mind. :8
But it works as it should now.
Offline