Date: Fri, 22 Feb 2002 19:53:31 -0500 (EST) From: Alan Eldridge <ports@geeksrus.net> To: FreeBSD-gnats-submit@freebsd.org Cc: kde@freebsd.org Subject: ports/35223: x11/kdebase2: make kdm Do The Right Thing for session = "default" and no ~/.xsession Message-ID: <200202230053.g1N0rVW65990@wwweasel.geeksrus.net>
next in thread | raw e-mail | index | archive | help
>Number: 35223 >Category: ports >Synopsis: x11/kdebase2: make kdm Do The Right Thing for session = "default" and no ~/.xsession >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Feb 22 17:00:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Alan Eldridge >Release: FreeBSD 4.5-STABLE i386 >Organization: Geeksrus.NET >Environment: System: FreeBSD wwweasel.geeksrus.net 4.5-STABLE FreeBSD 4.5-STABLE #0: Fri Feb 8 21:25:34 EST 2002 root@wwweasel.geeksrus.net:/usr/obj/usr/src/sys/WWWEASEL i386 >Description: If the session type is set to default, then kdm fails silently if the user doesn't have a ~/.xsession script. This seems to be a FAQ and commonly repeated bug report. This patch sets the session type to "kde" and falls through to run "startkde" if the session is "default" but ~/.xsession does not exist or is not executable. JJ Behrens <jj@nttmcl.com> suggested fixing this so people wouldn't be confused (about this issue) anymore. >How-To-Repeat: >Fix: --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<-- Index: x11/kdebase2/files/patch-kdm::kfrontend::genkdmconf.c =================================================================== RCS file: /home/alane/cvsroot/ports/x11/kdebase2/files/patch-kdm::kfrontend::genkdmconf.c,v retrieving revision 1.3 diff -u -3 -r1.3 patch-kdm::kfrontend::genkdmconf.c --- x11/kdebase2/files/patch-kdm::kfrontend::genkdmconf.c 6 Jan 2002 06:28:07 -0000 1.3 +++ x11/kdebase2/files/patch-kdm::kfrontend::genkdmconf.c 23 Feb 2002 00:35:56 -0000 @@ -1,5 +1,5 @@ --- kdm/kfrontend/genkdmconf.c.orig Mon Nov 5 21:40:03 2001 -+++ kdm/kfrontend/genkdmconf.c Sat Jan 5 23:49:40 2002 ++++ kdm/kfrontend/genkdmconf.c Fri Feb 22 19:34:28 2002 @@ -212,7 +212,7 @@ */ @@ -31,7 +31,17 @@ "-x " KDMCONF "/Xservers " #endif "$USER\n" -@@ -1781,7 +1781,7 @@ +@@ -1658,7 +1658,8 @@ + " exec xterm -geometry 80x24-0-0 $*\n" + " ;;\n" + " \"\"|default)\n" +-" exec $HOME/.xsession $*\n" ++" test -x $HOME/.xsession && exec $HOME/.xsession $*\n" ++" sess=kde\n" + " ;;\n" + "esac\n" + "\n" +@@ -1781,7 +1782,7 @@ } addKdePath ("UserPath", DEF_USER_PATH); addKdePath ("SystemPath", DEF_SYSTEM_PATH); --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<-- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202230053.g1N0rVW65990>