]> git.lyx.org Git - lyx.git/blobdiff - development/cygwin/lyxprofile
Not in tree anymore.
[lyx.git] / development / cygwin / lyxprofile
index f51bd556f1c41b25fe831a51d12b2073834e21e0..f61e941001c11fd13e5f2c05e6534787d3988736 100644 (file)
@@ -1,7 +1,7 @@
 # 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
     HOME="/home/${USER}"
     test -d "${HOME}" || HOME=/tmp
@@ -16,7 +16,7 @@ export HOME
 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