public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Ken Brown <kbrown@cornell.edu>
To: cygwin@cygwin.com
Subject: Re: XWin won't run xterm on start
Date: Mon, 22 Feb 2016 22:19:00 -0000	[thread overview]
Message-ID: <56CB8970.6030600@cornell.edu> (raw)
In-Reply-To: <56CB82F2.3070506@cornell.edu>

[-- Attachment #1: Type: text/plain, Size: 289 bytes --]

On 2/22/2016 4:51 PM, Ken Brown wrote:
> There's no need for this complexity.  If you don't like what the system
> startxwinrc does, just copy it to ~/.startxwinrc and modify it to suit
> your purposes.

For example, something like the attached .startxwinrc might do what you 
want.

Ken


[-- Attachment #2: .startxwinrc --]
[-- Type: text/plain, Size: 2999 bytes --]

#!/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 <yselkowi@redhat.com>

# 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

export QT_STYLE_OVERRIDE="gtk"
export XDG_MENU_PREFIX="xwin-"
export XDG_CURRENT_DESKTOP="X-Cygwin"
# 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/bin/trayer ] ; then
    /usr/bin/trayer --edge top --align left --widthtype request &
    TRAY=1
fi

if [ -x /usr/libexec/notification-daemon -a -n "$TRAY" ] ; then
    /usr/libexec/notification-daemon &
elif [ -x /usr/libexec/mate-notification-daemon ] ; then
    /usr/libexec/mate-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 -a -n "$TRAY" ] ; then
	/usr/bin/pasystray &
    elif [ -x /usr/bin/mate-volume-control-applet -a -n "$TRAY" ] ; 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 -a -n "$TRAY" ] && /usr/bin/krb5-auth-dialog &

if [ -x /usr/libexec/evolution/3.12/evolution-alarm-notify ] ; then
    /usr/libexec/evolution/3.12/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/fbxkb ] && /usr/bin/fbxkb &
/usr/bin/uxterm -ls &
exec /usr/bin/xwin-xdg-menu

[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

--
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

  reply	other threads:[~2016-02-22 22:19 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-21 21:28 Jaakov Jaakov
2016-02-21 23:21 ` Eliot Moss
2016-02-22  1:59   ` Ken Brown
2016-02-22  2:43     ` Eliot Moss
2016-02-22 20:47   ` Jaakov
2016-02-22 21:51     ` Ken Brown
2016-02-22 22:19       ` Ken Brown [this message]
2016-02-22 20:55   ` Jaakov
2016-02-22 21:52     ` Ken Brown
     [not found] <1456258759.50776.ezmlm@cygwin.com>
2016-02-23 20:42 ` Jaakov
2016-02-24  0:12   ` Ken Brown
2016-03-24 22:49   ` Mark Hansen
2016-03-24 22:52     ` Mark Hansen
2016-02-24  1:19 ` Jaakov
  -- strict thread matches above, loose matches on Subject: below --
2016-02-21 18:24 Jaakov Jaakov
2016-02-21 18:41 ` Marco Atzeri
2016-02-21 19:16   ` Jaakov Jaakov
2016-02-21 21:07     ` Eliot Moss
2016-02-21 14:38 Jaakov Jaakov
2016-02-21 17:27 ` Marco Atzeri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56CB8970.6030600@cornell.edu \
    --to=kbrown@cornell.edu \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).