X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; q=dns; s=default; b=bO0LXuemsfH7pvcLmt3xddVx6dYjE GsFM9luzYcjWnEVypi/IWkhXT9PfuqA4PXkh9XSvtkkJlBjTm0+3smIxhE4LgNJ7 tFng2xUlbYYrD2eNL+bQXFLjJIFWhp0azQ/t67jkyM667kwh0Se1vaCpjexj9lVJ 5Guvw9dyhAJiY8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; s=default; bh=Wjlq0yvdN4NOJzKjEh8coU3aVB0=; b=XLs FzBJwrkBVX6p84S896tLdtmUmZhATwMVdQbQJQBqmqlez0W+V3Np8B2w3Fw+rS4E 1rVqcR6aVnLUqJ5C+5RbFsR+bRR8qMsDpJaEdkYiOZxs7viArwBlZkXBg8iR3jrT Mmzble/FYdnbQaB8T0rPfLxi+v8EdUINa1XutA98= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.5 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,UNSUBSCRIBE_BODY autolearn=no version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-yk0-f193.google.com MIME-Version: 1.0 X-Received: by 10.13.207.131 with SMTP id r125mr15383390ywd.336.1447323077836; Thu, 12 Nov 2015 02:11:17 -0800 (PST) Date: Thu, 12 Nov 2015 11:11:17 +0100 Message-ID: Subject: XWin Server starts but terminates shortly after From: Thomas Schweikle To: Cygwin , Cygwin Content-Type: text/plain; charset=UTF-8 Since about six months: I can start XWin-Server, but it terminates shortly after without any chance to start any X11-application. The X11-log shows: -- SNIP # cat XWin.0.log Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: 1.17.4.0 OS: CYGWIN_NT-6.1 nc403-muc 2.3.0(0.291/5/3) 2015-11-09 10:24 x86_64 OS: Windows 7 Service Pack 1 [Windows NT 6.1 build 7601] (Win64) Package: version 1.17.4-1 built 2015-10-29 XWin was started with the following command line: /usr/bin/XWin -multiwindow -clipboard ddxProcessArgument - Initializing default screens winInitializeScreenDefaults - primary monitor w 1920 h 1200 winInitializeScreenDefaults - native DPI x 96 y 96 [ 996.393] (II) xorg.conf is not supported [ 996.393] (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information [ 996.393] LoadPreferences: /cygdrive/c/Users/sct-muc.BFS/.XWinrc not found [ 996.393] LoadPreferences: Loading /etc/X11/system.XWinrc [ 996.393] LoadPreferences: Done parsing the configuration file... [ 996.409] winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL [ 996.409] winDetectSupportedEngines - Returning, supported engines 00000005 [ 996.456] winSetEngine - Multi Window or Rootless => ShadowGDI [ 996.456] winScreenInit - Using Windows display depth of 32 bits per pixel [ 996.456] winAllocateFBShadowGDI - Creating DIB with width: 1920 height: 1200 depth: 32 [ 996.456] winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff [ 996.456] winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32 [ 996,471] MIT-SHM extension disabled due to lack of kernel support [ 996,471] XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel [ 996,471] glWinSelectGLimplementation: Loaded 'cygnativeGLthunk.dll' -- SNAP xorg.conf is no existing. An user ~/.XWinrc doesn't exist. A system wide /etc/X11/system.XWinrc exists: -- SNIP $ cat /etc/X11/system.XWinrc # XWin Server Resource File - EXAMPLE # Earle F. Philhower, III # Place in ~/.XWinrc or in /etc/X11/system.XWinrc # Keywords are case insensitive, comments legal pretty much anywhere # you can have an end-of-line # Comments begin with "#" or "//" and go to the end-of-line # Paths to commands are **cygwin** based (i.e. /usr/local/bin/xcalc) # Paths to icons are **WINDOWS** based (i.e. c:\windows\icons) # Menus are defined as... # MENU { # EXEC # ^^ This command will have any "%display%" # string replaced with the proper display # variable (i.e. 127.0.0.1:.0) # (This should only rarely be needed as # the DISPLAY environment variable is also # set correctly) # or MENU # or ALWAYSONTOP # ^^ Sets the window to display above all others # or RELOAD # ^^ Causes ~/.XWinrc or the system.XWinrc file # to be reloaded and icons and menus regenerated # or SEPARATOR # ... # } # Set the taskmar menu with # ROOTMENU # If you want a menu to be applied to all popup window's system menu # DEFAULTSYSMENU # To choose a specific menu for a specific WM_CLASS or WM_NAME use ... # SYSMENU { # # ... # } # When specifying an ICONFILE in the following commands several different # formats are allowed: # 1. Name of a regular Windows .ico format file # (ex: "cygwin.ico", "apple.ico") # 2. Name and index into a Windows .DLL # (ex: "c:\windows\system32\shell32.dll,4" gives the default folder icon # "c:\windows\system32\shell32.dll,5" gives the floppy drive icon) # 3. Index into XWin.EXE internal ICON resource # (ex: ",101" is the 1st icon inside XWin.exe) # To define where ICO files live (** Windows path**) # ICONDIRECTORY # NOTE: If you specify a fully qualified path to an ICON below # (i.e. "c:\xxx" or "d:\xxxx") # this ICONDIRECTORY will not be prepended # To change the taskbar icon use... # TRAYICON # To define a replacement for the standard X icon for apps w/o specified icons # DEFAULTICON # To define substitute icons on a per-window basis use... # ICONS { # # ... # } # In the case where multiple matches occur, the first listed in the ICONS # section will be chosen. # To disable exit confirmation dialog add the line containing SilentExit # DEBUG prints out the string to the XWin.log file // Below are just some silly menus to demonstrate writing your // own configuration file. // Make some menus... menu apps { xterm exec "xterm" "Emacs" exec "emacs" notepad exec notepad xload exec "xload -display %display%" # Comment } menu root { "Applications" menu apps // Comments fit here, too... SEPARATOR FAQ EXEC "cygstart http://x.cygwin.com/docs/faq/cygwin-x-faq.html" "User's Guide" EXEC "cygstart http://x.cygwin.com/docs/ug/cygwin-x-ug.html" SEPARATOR "View logfile" EXEC "xterm -title $XWINLOGFILE -e less +F $XWINLOGFILE" SEPARATOR "Reload .XWinrc" RELOAD SEParATOR } menu aot { Separator "Always on Top" alwaysontop } menu xtermspecial { "Emacs" exec "emacs" "Always on Top" alwaysontop SepArAtor } RootMenu root DefaultSysMenu aot atend SysMenu { "xterm" xtermspecial atstart } # IconDirectory "c:\winnt\" # DefaultIcon "reinstall.ico" # Icons { # "xterm" "uninstall.ico" # } SilentExit DEBUG "Done parsing the configuration file..." -- SNAP and is more or less left at defaults. XWin-Server is started by: "C:\cygwin\bin\run.exe /usr/bin/XWin -multiwindow -clipboard" with default directory set to "C:\cygwin\bin". In "/etc/X11/xinit/startxwinrc" -- SNIP $ cat /etc/X11/xinit/startxwinrc #!/bin/sh # Copyright (C) 1999 - 2005, 2014 Red Hat, Inc. All rights reserved. This # copyrighted material is made available to anyone wishing to use, modify, # copy, or redistribute it subject to the terms and conditions of the # GNU General Public License version 2. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # Authors: # Yaakov Selkowitz # redirect errors to a file in user's home directory if we can if [ -z "$GDMSESSION" ]; then # GDM redirect output itself in a smarter fashion errfile="$HOME/.xsession-errors" if ( umask 077 && cp /dev/null "$errfile" 2> /dev/null ); then chmod 600 "$errfile" [ -x /sbin/restorecon ] && /sbin/restorecon $errfile exec > "$errfile" 2>&1 else errfile=$(mktemp -q /tmp/xses-$USER.XXXXXX) if [ $? -eq 0 ]; then exec > "$errfile" 2>&1 fi fi fi # Mandatorily source xinitrc-common, which is common code shared between the # Xsession and xinitrc scripts which has been factored out to avoid duplication . /etc/X11/xinit/xinitrc-common # The user may have their own clients they want to run. If they don't, # fall back to system defaults. if [ -f $HOME/.startxwinrc ] ; then exec $CK_XINIT_SESSION $SSH_AGENT $HOME/.startxwinrc || \ exec $CK_XINIT_SESSION $SSH_AGENT $HOME/.startxwinrc else # default settings [ -x /usr/bin/xdg-user-dirs-gtk-update ] && /usr/bin/xdg-user-dirs-gtk-update [ -x /usr/bin/gsettings-data-convert ] && /usr/bin/gsettings-data-convert if [ -x /usr/libexec/mate-notification-daemon ] ; then /usr/libexec/mate-notification-daemon & elif [ -x /usr/libexec/notification-daemon ] ; then /usr/libexec/notification-daemon & elif [ -x /usr/lib/xfce4/notifyd/xfce4-notifyd ] ; then /usr/lib/xfce4/notifyd/xfce4-notifyd & elif [ -x /usr/bin/lxqt-notificationd ] ; then /usr/bin/lxqt-notificationd & fi if [ -x /usr/bin/start-pulseaudio-x11 ] ; then /usr/bin/start-pulseaudio-x11 if [ -x /usr/bin/pasystray ] ; then /usr/bin/pasystray & elif [ -x /usr/bin/mate-volume-control-applet ] ; then /usr/bin/mate-volume-control-applet & fi fi if [ -x /usr/bin/gnome-keyring-daemon ] ; then eval `/usr/bin/gnome-keyring-daemon --start` export GNOME_KEYRING_CONTROL GPG_AGENT_INFO SSH_AUTH_SOCK fi [ -x /usr/bin/krb5-auth-dialog ] && /usr/bin/krb5-auth-dialog & if [ -x /usr/libexec/evolution/3.14/evolution-alarm-notify ] ; then /usr/libexec/evolution/3.14/evolution-alarm-notify & elif [ -x /usr/libexec/evolution/3.10/evolution-alarm-notify ] ; then /usr/libexec/evolution/3.10/evolution-alarm-notify & fi [ -x /usr/bin/seahorse-sharing ] && /usr/bin/seahorse-sharing & [ -x /usr/bin/zeitgeist-datahub ] && /usr/bin/zeitgeist-datahub & #[ -x /usr/bin/xterm ] && /usr/bin/xterm & [ -x /usr/bin/fbxkb ] && /usr/bin/fbxkb & #[ -x /usr/bin/fbpanel ] && exec /usr/bin/fbpanel -p multiwindow #[ -x /usr/bin/xwin-xdg-menu ] && exec /usr/bin/xwin-xdg-menu [ -x /usr/bin/sleep ] && exec /usr/bin/sleep infinity fi -- SNAP Since "$HOME/.startxwinrc" does not exist", and "/usr/bin/sleep" exists, "/usr/bin/sleep" shall be executed with argument "infinity", keeping XWin up and running, without starting any client. But it just doesn't work. /etc/X11/xinit/startxwinrc seems never to execute. -- Thomas -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple