No HOME environment var, USER, SHELL, others not set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-terminal (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Shortly after I logged in, I started a gnome-terminal with Ctrl-Alt-T. I was surprised to see the message:
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
I was further surprised to see that /usr/bin/script started /bin/sh, not /bin/bash.
So far, I've noticed (after moving my .profile and .bashrc aside) that the environment provided is only:
DISPLAY=:0
PWD=/home/w3
SHLVL=1
TERM=xterm-256color
VTE_VERSION=4205
WINDOWID=67108874
No HOME, SHELL, USER, ...
A gnome-terminal started later gets no sudo complaints, and these environment variables:
CLUTTER_
COMPIZ_
COMPIZ_
DBUS_SESSION_
DEFAULTS_
DESKTOP_
DISPLAY=:0
GDM_LANG=en_CA
GDMSESSION=ubuntu
GNOME_DESKTOP_
GNOME_KEYRING_
GNOME_KEYRING_PID=
GPG_AGENT_
GTK2_MODULES=
GTK_IM_MODULE=ibus
GTK_MODULES=
HOME=/home/w3
IM_CONFIG_PHASE=1
INSTANCE=
JOB=unity-
LANG=en_CA.UTF-8
LANGUAGE=en_CA:en
LIBVIRT_
LOGNAME=w3
MANDATORY_
PAM_KWALLET5_
PATH=/home/
PWD=/home/w3
QT4_IM_MODULE=ibus
QT_ACCESSIBILITY=1
QT_IM_MODULE=ibus
QT_LINUX_
QT_QPA_
SESSION_
SESSIONTYPE=
SESSION=ubuntu
SHELL=/bin/bash
SHLVL=1
SSH_AUTH_
TERM=xterm-256color
UPSTART_
UPSTART_INSTANCE=
UPSTART_JOB=unity7
UPSTART_
USER=w3
Why isn't gnome-terminal startup deterministic?
I still have the malfunctioning gnome-terminal open if further diagnosis is possible or needed.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: gnome-terminal 3.18.3-1ubuntu1
ProcVersionSign
Uname: Linux 4.4.0-78-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.6
Architecture: amd64
CurrentDesktop: Unity
Date: Thu May 25 16:05:52 2017
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-01-23 (1583 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
SourcePackage: gnome-terminal
UpgradeStatus: No upgrade log present (probably fresh install)