puts "\nsetOperMode $mode"
if { $mode == "exec" } { ;# let's try something, sockets should be opened
-# puts Running as $::env(USERNAME)...
+# puts Running as $tcl_platform(user)...
if { $editor_only } { ;# if set in nexec or open_exec_sockets
.menubar.experiment entryconfigure "Execute" -state disabled
return
.bottom.oper_mode configure -text "$mode mode"
set activetool select
.left.select configure -state active
- if { "$mode" == "exec" && $::env(USERNAME) == "root" } {
+ if { "$mode" == "exec" && $tcl_platform(user) == "root" } {
global autorearrange_enabled
set autorearrange_enabled 0
.menubar.tools entryconfigure "Auto rearrange all" -state disabled