[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#168347: marked as done (xfree86-common: [Xsession] want another way to prefer x-window-manager over x-session-manager)



Your message dated Sun, 26 Sep 2004 23:15:18 +0200
with message-id <20040926211518.GA11112@aokiconsulting.com>
and subject line I do not get annoyed by alternative any more :-)
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 8 Nov 2002 19:43:40 +0000
>From nospam@aokiconsulting.com Fri Nov 08 13:43:40 2002
Return-path: <nospam@aokiconsulting.com>
Received: from sccrmhc03.attbi.com [204.127.202.63] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18AF2a-0001xF-00; Fri, 08 Nov 2002 13:43:40 -0600
Received: from gateway.lan.aokiconsulting.com ([12.234.106.18])
          by sccrmhc03.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20021108194309.SJV3205.sccrmhc03.attbi.com@gateway.lan.aokiconsulting.com>
          for <submit@bugs.debian.org>; Fri, 8 Nov 2002 19:43:09 +0000
Received: from goofy.lan.aokiconsulting.com ([192.168.1.3])
	by gateway.lan.aokiconsulting.com with esmtp (Exim 3.35 #1 (Debian))
	id 18AF22-0007CX-00
	for <submit@bugs.debian.org>; Fri, 08 Nov 2002 11:43:06 -0800
Received: from nospam by goofy.lan.aokiconsulting.com with local (Exim 3.36 #1 (Debian))
	id 18AF1z-0004rH-00
	for <submit@bugs.debian.org>; Fri, 08 Nov 2002 11:43:03 -0800
Date: Fri, 8 Nov 2002 11:43:03 -0800
From: Osamu Aoki <osamu@debian.org>
To: submit@bugs.debian.org
Subject: system default x-session-manager/xwindow-manager (patch)
Message-ID: <20021108194303.GA18535@aokiconsulting.com>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="x+6KMIRAuhnl3hBn"
Content-Disposition: inline
User-Agent: Mutt/1.4i
X-GPG-Fingerprint: 253A 4076 6A3B CCE2 A426  DEF5 E80F C4C1 A806 1F32
Sender: Osamu Aoki <nospam@aokiconsulting.com>
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-4.6 required=5.0
	tests=SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_MUTT
	version=2.41
X-Spam-Level: 


--x+6KMIRAuhnl3hBn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Package: xfree86-common
Version: 4.2.1-3
Severity: wishlist
Tags: patch

File:  /etc/X11/Xsession.d/50xfree86-common_determine-startup

Issues:
 1) Full path was not given for REALSTARTUP (Just to be safe side)
 2) If x-session-manager is installed on the system, it gets quite
    intrusive to make one of the x-window-manager as the system default
    (I like blackbox but want to have some accounts with KDE or GNOME.)
 3) If alternative system is broken (as I did recently), fall-back
    scenario is weak.  (Let's fall-back to twm or xterm to make people
    aware there is life beyond GNOME and KDE. Both xterm and twm are in
    your associated packages).
 4) Hello, Branden.  I am brave enough to write a section for quick 
    start-up guide for X in my "Debian Reference".  Windows manager
    set-up was one of the challenging one and I want my life to be easy
    :-)  (I still have to add/correct few things in there.  This is
    solicitation of constructive flame.) Latest CVS build are:
    
      http://qref.sf.net/Debian/reference/ch-tune.en.html#s-x

Please consider replacing 50xfree86-common_determine-startup with
something like attached file and update /etc/X11/Xsession.options
accordingly as attached file.  (Oops, I do not have manual page)

-- 
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ +++++
        Osamu Aoki <osamu@debian.org>   Cupertino CA USA, GPG-key: A8061F32
 .''`.  Debian Reference: post-installation user's guide for non-developers
 : :' : http://qref.sf.net and http://people.debian.org/~osamu
 `. `'  "Our Priorities are Our Users and Free Software" --- Social Contract


--x+6KMIRAuhnl3hBn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=50xfree86-common_determine-startup


if grep -qs ^allow-user-xsession "$OPTIONFILE"; then
  for STARTUPFILE in "$STARTUP" "$ALTSTARTUP"; do
    if [ -e "$STARTUPFILE" ]; then
      if [ -x "$STARTUPFILE" ]; then
        REALSTARTUP=$STARTUPFILE
      else
        REALSTARTUP="sh $STARTUPFILE"
      fi
      break
    fi
  done
fi

# Works even if alternative system is broken. :-)
# also now you can install X session manager and you can choose to
# use X window manager as default for everyone.
if [ -z "$REALSTARTUP" ]; then
  if [ -x /usr/bin/x-session-manager ]; then
    if ! grep -qs ^do-not-use-x-session-manager "$OPTIONFILE"; then
      REALSTARTUP=/usr/bin/x-session-manager
    fi
  elif [ -x /usr/bin/x-window-manager ]; then
    if ! grep -qs ^do-not-use-x-window-manager "$OPTIONFILE"; then
      REALSTARTUP=/usr/bin/x-window-manager
    fi
  elif [ -x /usr/bin/X11/twm ]; then
    if ! grep -qs ^do-not-use-x-window-manager "$OPTIONFILE"; then
      REALSTARTUP=/usr/bin/X11/twm
    fi
  elif [ -x /usr/bin/x-terminal-emulator ]; then
    REALSTARTUP=/usr/bin/x-terminal-emulator
  elif [ -x /usr/bin/X11/xterm ]; then
    REALSTARTUP=/usr/bin/X11/xterm
  fi
fi

if [ -z "$REALSTARTUP" ]; then
  # fatal error
  ERRMSG="Xsession: unable to start X session; "
  if grep -qs ^allow-user-xsession "$OPTIONFILE"; then
    ERRMSG="$ERRMSG no $STARTUP file, no $ALTSTARTUP file,"
  fi
  errormsg "$ERRMSG no session managers, no window managers, and no terminal" \
           "emulators found.  Aborting."
fi

--x+6KMIRAuhnl3hBn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="Xsession.options"

# /etc/X11/Xsession.options
#
# configuration options for /etc/X11/Xsession
# See Xsession.options(5) for an explanation of the available options.
# Default enabled
allow-failsafe
allow-user-resources
allow-user-xsession
use-ssh-agent
# Default disabled (enable them by uncommenting)
#do-not-use-x-session-manager
#do-not-use-x-window-manager

--x+6KMIRAuhnl3hBn--

---------------------------------------
Received: (at 168347-done) by bugs.debian.org; 26 Sep 2004 21:10:15 +0000
>From osamu@aokiconsulting.com Sun Sep 26 14:10:15 2004
Return-path: <osamu@aokiconsulting.com>
Received: from outmx005.isp.belgacom.be [195.238.2.102] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1CBgHf-0005Cv-00; Sun, 26 Sep 2004 14:10:15 -0700
Received: from outmx005.isp.belgacom.be (localhost [127.0.0.1])
        by outmx005.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with ESMTP id i8QLA7U4006350
        for <168347-done@bugs.debian.org>; Sun, 26 Sep 2004 23:10:07 +0200
        (envelope-from <osamu@aokiconsulting.com>)
Received: from dambo.lan.aokiconsulting.com (11.201-200-80.adsl.skynet.be [80.200.201.11])
        by outmx005.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with ESMTP id i8QLA0pa006306
        for <168347-done@bugs.debian.org>; Sun, 26 Sep 2004 23:10:00 +0200
        (envelope-from <osamu@aokiconsulting.com>)
Received: from osamu by dambo.lan.aokiconsulting.com with local (Exim 4.34)
	id 1CBgMY-00031u-Er
	for 168347-done@bugs.debian.org; Sun, 26 Sep 2004 23:15:18 +0200
Date: Sun, 26 Sep 2004 23:15:18 +0200
From: Osamu Aoki <osamu@debian.org>
To: 168347-done@bugs.debian.org
Subject: I do not get annoyed by alternative any more :-)
Message-ID: <20040926211518.GA11112@aokiconsulting.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-GPG-Fingerprint: 253A 4076 6A3B CCE2 A426  DEF5 E80F C4C1 A806 1F32
User-Agent: Mutt/1.5.6+20040818i
Sender: Osamu Aoki <osamu@aokiconsulting.com>
Delivered-To: 168347-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

Hi,

Let me close this since alternative is not main way to select SM/WM
thesedays.  (GDM, KDM, WDM)

For XDM, we can use ~/.xsession anyway.

Now all DM use /etc/X11/Xsession.d/* files so inconsistent boot up
issues are gone.

Cheers,

Osamu
-- 
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ +++++
        Osamu Aoki <osamu@debian.org>  Brussels Belgium, GPG-key: A8061F32
 .''`.  Debian Reference: post-installation user's guide for non-developers
 : :' : http://qref.sf.net and http://people.debian.org/~osamu
 `. `'  "Our Priorities are Our Users and Free Software" --- Social Contract



Reply to: