bugGNU Screen - Bugs: bug #42142, screen <command> with STY...


bug #42142: screen <command> with STY set to outside screen session does not behave as expected

Submitted by:  Luke Dashjr <lukedashjr>
Submitted on:  Fri 18 Apr 2014 01:50:00 PM UTC  
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: None
Fixed Release: NonePlanned Release: None
Work Required: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Fri 18 Apr 2014 01:50:00 PM UTC, original submission:

I run my X session in screen, so that I can later attach to it inside the X session itself. However, this sets the STY environment variable, so when I go to use screen inside a terminal, it just quietly exits (or opens a new window in my X screen?), with no indication in my terminal what actually happened.

Expected behaviour is that it realises it's not inside the X screen, and behaves the same way as if STY was not set: create a new screen session with the application.

Also, I observed that inside a screen session, if you change users (eg, with su or sudo) and STY remains set, screen fails with an error:
/root/.screen/3192.X: No such file or directory

Luke Dashjr <lukedashjr>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by lukedashjr (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup