X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=development%2Fcygwin%2Flyxprofile;h=f61e941001c11fd13e5f2c05e6534787d3988736;hb=86826df4aacdad33ff28905ac25feee90972b575;hp=81ef67f8c419d47940de7d1eff79a0f4845ce41c;hpb=68d936250e909b1746ba03968cc5f09b21b5ec04;p=lyx.git diff --git a/development/cygwin/lyxprofile b/development/cygwin/lyxprofile index 81ef67f8c4..f61e941001 100644 --- a/development/cygwin/lyxprofile +++ b/development/cygwin/lyxprofile @@ -1,26 +1,22 @@ # Set up the home directory if not already set in the system environment. if [ -z "${HOME}" ]; then USER=`id -un` - HOME=`grep "^${USER}:" /etc/passwd | cut -d: -f6` + HOME=`getent passwd "${USER}" | cut -d: -f6` if [ -z "${HOME}" -o ! -d "${HOME}" ]; then - DOCSFOLDER=`regtool -q get '\HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Personal'` - test -n "${DOCSFOLDER}" && HOME=`cygpath -u "${DOCSFOLDER}"` || HOME=/tmp + 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. -export LANG=C - -# Set up the output charset for your locale. -# You may need to experiment with this if you get garbage -# in menus ("`a" instead of "à", for example). -export OUTPUT_CHARSET=iso-8859-1 +# 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=localhost:0.0 +export DISPLAY=:0.0 # ======================================================== # Below this line you should not change anything if you're @@ -49,4 +45,4 @@ else cd "${HOME}" fi -test -f "${HOME}/.bashrc" && . "${HOME}/.bashrc" +test -f "${HOME}/.lyxprofile" && . "${HOME}/.lyxprofile"