mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 11:23:45 +00:00
afeae62f3f
Recent versions of the cygwin X11 server come with a startup script that explicitly uses '-nolisten tcp' for improved security. This means that mentioning a host part in the DISPLAY variable precludes correct operation. So, leave blank the host part such that only local connections are attempted. Even if a user can override this setting in the own ~/.lyxprofile, novice users (and even experienced ones, at first) would be probably confused by the "Error: Can't open display: localhost:0" message and thus it is better to make this work out of the box.
49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
# Set up the home directory if not already set in the system environment.
|
|
if [ -z "${HOME}" ]; then
|
|
USER=`id -un`
|
|
HOME=`getent passwd "${USER}" | cut -d: -f6`
|
|
if [ -z "${HOME}" -o ! -d "${HOME}" ]; then
|
|
HOME="/home/${USER}"
|
|
test -d "${HOME}" || HOME=/tmp
|
|
fi
|
|
fi
|
|
export HOME
|
|
|
|
# Set up your Language (if you do not want English) by
|
|
# replacing C (for C locale) with your country code in
|
|
# the following line for system-wide settings or in
|
|
# ~/.lyxprofile for per-user settings.
|
|
export LANG=C.UTF-8
|
|
|
|
# Set up Hostname/IP address where LyX can find an X-server.
|
|
export DISPLAY=:0.0
|
|
|
|
# ========================================================
|
|
# Below this line you should not change anything if you're
|
|
# not familiar with configuration of an unix application!
|
|
# ========================================================
|
|
export PATH="/usr/local/bin:/usr/bin:/usr/X11R6/bin:$PATH"
|
|
export USER="`id -un`"
|
|
export MAKE_MODE=unix
|
|
export OSTYPE=cygwin
|
|
|
|
unset DOSDRIVE
|
|
unset DOSDIR
|
|
unset TMPDIR
|
|
unset TMP
|
|
|
|
for f in /etc/profile.d/*.sh ; do
|
|
if [ -f "${f}" ]; then
|
|
. "${f}"
|
|
fi
|
|
done
|
|
|
|
if [ ! -z "${CDPATH}" ]; then
|
|
cd "${CDPATH}"
|
|
unset CDPATH
|
|
else
|
|
cd "${HOME}"
|
|
fi
|
|
|
|
test -f "${HOME}/.lyxprofile" && . "${HOME}/.lyxprofile"
|