[gnome-shell.in] Move running environment inheritance earlier
We also want to use it for --eval, so that works over ssh logins too.
This commit is contained in:
parent
b0ba40f812
commit
6e2ec7291e
@ -356,6 +356,11 @@ function main() {
|
|||||||
subprocess.Popen(['gnome-open', extensionjs_path])
|
subprocess.Popen(['gnome-open', extensionjs_path])
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
# Handle ssh logins
|
||||||
|
if 'DISPLAY' not in os.environ:
|
||||||
|
running_env = get_running_session_environs()
|
||||||
|
os.environ.update(running_env)
|
||||||
|
|
||||||
if options.eval_file:
|
if options.eval_file:
|
||||||
import dbus
|
import dbus
|
||||||
|
|
||||||
@ -394,10 +399,6 @@ if options.verbose:
|
|||||||
print "Starting shell"
|
print "Starting shell"
|
||||||
|
|
||||||
|
|
||||||
# Handle ssh logins
|
|
||||||
if 'DISPLAY' not in os.environ:
|
|
||||||
running_env = get_running_session_environs()
|
|
||||||
os.environ.update(running_env)
|
|
||||||
|
|
||||||
if options.debug:
|
if options.debug:
|
||||||
# Record initial terminal state so we can reset it to that
|
# Record initial terminal state so we can reset it to that
|
||||||
|
Loading…
Reference in New Issue
Block a user