Score:0

How to see 'screennumber' coming into play in $DISPLAY environment variable?

in flag

I understand that $DISPLAY environment variable value is of the form - hostname:displaynumber.screennumber

I ran few tests with an ubuntu laptop with an additional screen (monitor) connected in 'Join Displays' mode. I was hoping to see a screennumber but it did not.

Test 1

On screen 1:

  1. Launch Terminal
  2. echo $DISPLAY

On screen 2:

  1. Launch Terminal
  2. echo $DISPLAY

$DISPLAY is ':0' from both screens. I was expecting :0.0 and :0.1 on the two screens respectively. Is that a wrong expectation?

Test 2

On screen 1:

  1. Launch Terminal
  2. Export DISPLAY as :0.0 in the same terminal
  3. Launch a QT app from this Terminal

On screen 2:

  1. Launch Terminal
  2. Export DISPLAY as :0.1 in the same terminal
  3. Launch a QT app from this Terminal

Got error: "could not connect to display 0.0" "could not connect to display 0.1"

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.