Summary: | kdm takes several attempts to login | ||
---|---|---|---|
Product: | [Unmaintained] kdm | Reporter: | Micah <micahjon> |
Component: | general | Assignee: | kdm bugs tracker <kdm-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | FreeBSD Ports | ||
OS: | FreeBSD | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | make Xsession work with csh shell |
Description
Micah
2004-09-14 00:31:18 UTC
according to the logs you should rather inspect your ~/.xsession-errors. The first two login attempts got me the following line in ~/.xsession-errors: eval: 1: Syntax error: Unterminated quoted string The third attempt got me: eval: 1: Syntax error: "(" unexpected The fourth attempt succeeded, and obliterated the messages. please append " -x" to the #! /bin/sh line in the Xsession script and look at .xsession-errors again. what does the Session= line in ~/.dmrc say? .dmrc contains: [Desktop] Session=kde The new .xsession-errors can be found at http://students.washington.edu/micahjon/miscfiles/xsession-errors.log I am running tcsh, and my ~/.login consists of (comments removed): [ -x /usr/games/fortune ] && /usr/games/fortune freebsd-tips CVS commit by ossi: redirect *.login output to /dev/null to avoid eval-uating fortunes. the construct is such a hack ... let's see when it breaks again. :} CCMAIL: 89452-fixed@bugs.kde.org M +1 -1 genkdmconf.c 1.94 --- kdebase/kdm/kfrontend/genkdmconf.c #1.93:1.94 @@ -665,5 +665,5 @@ static const char def_session[] = " # Note that sourcing csh.login after .cshrc is non-standard.\n" " set -a\n" -" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login; if (-f ~/.login) source ~/.login; /bin/sh -c set | egrep -v \"^(BASH_VERSINFO|EUID|PPID|UID|GROUPS|SHELLOPTS|_)=\"'`\n" +" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login > /dev/null; if (-f ~/.login) source ~/.login > /dev/null; /bin/sh -c set | egrep -v \"^(BASH_VERSINFO|EUID|PPID|UID|GROUPS|SHELLOPTS|_)=\"'`\n" " set +a\n" " ;;\n" Created attachment 7800 [details]
make Xsession work with csh shell
Seems my comments on the previous patch are lost. kdm Xsession script inyect unwanted ENV to csh users. A malformed IFS string is generated by /bin/sh -c set parsing. Use /usr/bin/env instead of /bin/sh -c set to solve this. Also, don't export TERM or SHLVL This is not FreeBSD specific. Only that the kdm/csh duo is very common on FreeBSD. |