Score:1

DISPLAY environment location in Ubuntu 20.04

al flag

In Ubuntu, when the user logs in, then the Xserver starts and it sets the value for the DISPLAY environment variable. I wanted to know the location, like the file from which I can access this DISPLAY environment variable.

user535733 avatar
cn flag
Non-persistent environment variables are not stored in a file. They are stored in the user's environment until logout. You access them by querying the environment (`echo $DISPLAY`). Of course, anything the user is running *already* knows the DISPLAY, so why do you need to "access" it?
Vipul Gupta avatar
al flag
@user535733 here is the complete context for this question : https://askubuntu.com/questions/1475232/accessing-display-environment-variable-in-systemd-service-file
user535733 avatar
cn flag
Please do not repeatedly ask the same question. The etiquette here is to edit and improve your question. Since you have superseded this question with another, please be a thoughtful community member and close this one.
karel avatar
sa flag
Does this answer your question? [Accessing DISPLAY environment variable in systemd service file](https://askubuntu.com/questions/1475232/accessing-display-environment-variable-in-systemd-service-file)
I sit in a Tesla and translated this thread with Ai:

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.