I found out that kdm runs /etc/kde4/kdm/Xsession using user's default shell. http://i.imgur.com/xyiJ1b8.jpg
It is not sane as in Xsession(5) manpage notes: /etc/X11/Xsession is a Bourne shell (sh(1)) script which is run when an X Window System session is begun by startx(1) or a display manager such as xdm(1). -- You received this bug notification because you are a member of Kubuntu Bugs, which is subscribed to kde-workspace in Ubuntu. https://bugs.launchpad.net/bugs/1364173 Title: Xsession sourced scripts shouldn't be run using user's default shell To manage notifications about this bug go to: https://bugs.launchpad.net/kdebase-workspace/+bug/1364173/+subscriptions -- kubuntu-bugs mailing list kubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs