Because trusted_edit launches a window, it cannot be used for command line editing. Command line editing may be the only option available in a remote login session, so for this reason, do not assign trusted_edit as the only editor for a role, unless the role never needs to do remote editing on the command line.
Search for the vi function in the .profile file in the role's home directory:
vi() {adminvi $1;} |
Replace adminvi with trusted_edit:
vi() {trusted_edit $1;} |
Make sure the following entry is also made in the $HOME/.Xdefaults-hostname file in the SLD at each label at which the role works:
Dtterm*LoginShell: true |
Make a file for each hostname the role uses. For example, when the role works on computers named tern and toucan, create a $HOME/.Xdefaults-toucan and a $HOME/.Xdefaults-tern in each SLD.