[go: up one dir, main page]

File: profile-snippet

package info (click to toggle)
desktop-profiles 1.4.20
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,096 kB
  • ctags: 5
  • sloc: sh: 841; perl: 58; makefile: 37; csh: 8
file content (13 lines) | stat: -rwxr-xr-x 615 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# 
# Make sure that people starting graphical clients over SSH get the correct
# settings, i.e. make sure to run the profile activation script
############################################################################

# testing SSH_CLIENT as the woody ssh doesn't set SSH_CONNECTION
# also testing SSH_CONNECTION as the current ssh manpage no longer mentions
# SSH_CLIENT, so it appears that variable is being phased out.
if ( ( (test -n "${SSH_CLIENT}") || (test -n "${SSH_CONNECTION}") ) && \
     (test -n "${DISPLAY}") ); then
  . /etc/X11/Xsession.d/20desktop-profiles_activateDesktopProfiles
fi;