Bug 1663050 - quitting an X session run via 'startx' causes the tty it was run on to exit and restart (systemd 240)
Summary: quitting an X session run via 'startx' causes the tty it was run on to exit a...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-01-02 21:42 UTC by Adam Williamson
Modified: 2019-01-11 14:02 UTC (History)
7 users (show)

Fixed In Version: systemd-240-3.gitf02b547.fc30
Clone Of:
Environment:
Last Closed: 2019-01-11 14:02:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Adam Williamson 2019-01-02 21:42:37 UTC
This bug appeared between systemd-239-10.git3bf819c.fc30 and systemd-240-2.fc30 (I'm guessing it appeared in 240-1.fc30, but haven't confirmed yet). It's easily reproducible.

1. Do a minimal Rawhide install
2. Log in as root
3. dnf -y groupinstall base-x
4. dnf -y install libglvnd-egl firefox
5. sed -i -e 's,enable_xauth=1,enable_xauth=0,g' /usr/bin/startx
6. startx /usr/bin/firefox
7. After firefox launches, ctrl-q

After firefox exits, the tty quits and restarts, so you are back at the login prompt. With systemd-239-10.git3bf819c.fc30 and earlier, this did not happen - you were just sent back to the root console from which you ran startx.

This is breaking several openQA tests which expect the previous behaviour - they assume they'll be back at a root console after exiting Firefox, and continue to run commands, which obviously fail as they're actually at a login prompt. I'll have to work around this in the tests.


Note You need to log in before you can comment on or make changes to this bug.