You are not logged in.

#1 2019-10-27 10:00:50

dolly
Miss Mixunderstand
From: /lab1
Registered: 2015-10-03
Posts: 390

Possible bug in Lithium bl-exit dialogue

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. smile


Keep BunsenLabs #!yish please.

Offline

#2 2019-10-27 22:49:04

hhh
Meep!
Registered: 2015-09-17
Posts: 8,658
Website

Re: Possible bug in Lithium bl-exit dialogue

Thanks for posting this as @johnraff requested!

Offline

#3 2019-10-28 08:12:06

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 6,017
Website

Re: Possible bug in Lithium bl-exit dialogue

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...


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Online

#4 2019-10-28 09:25:11

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 6,017
Website

Re: Possible bug in Lithium bl-exit dialogue

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. smile


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Online

#5 2019-10-29 06:47:01

dolly
Miss Mixunderstand
From: /lab1
Registered: 2015-10-03
Posts: 390

Re: Possible bug in Lithium bl-exit dialogue

You are welcome, glad to be of some help. smile

Offtopic; Boot time (grub timeout set to one second) @Lithium worktop with brand new ssd 15 seconds  yikes

Last edited by dolly (2019-10-29 06:49:51)


Keep BunsenLabs #!yish please.

Offline

Board footer

Powered by FluxBB