You are not logged in.

#1 2014-12-15 14:42:39

Cromulent
Member
From: United Kingdom
Registered: 2011-08-28
Posts: 52
Website

zsh compatible xsession

Currently my ~/.xsession file looks like this:

#!/bin/sh

#
# ~/.xsession
#
# Executed by xdm/gdm/kdm at login
#

/bin/bash --login -i ~/.xinitrc

can I just change the /bin/bash to /bin/zsh or do I need to do anything else to make sure that zsh is used instead of bash?

I'm also assuming that this file is sourced by lightdm? I've followed the instructions about migrating from SLiM to lightdm and the xsession file is the only left that I am not sure about.

Offline

#2 2014-12-15 14:51:30

thearcherblog
Member
Registered: 2014-10-30
Posts: 165

Offline

#3 2014-12-15 15:13:12

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,548
Website

Re: zsh compatible xsession

That seems wasteful overall.  There is no reason for the extra subshell whether it is bash or zsh.  Just source the xinitrc.

#!/bin/sh

source ~/.xinitrc

If zsh doesn't implement the 'source' command use the appropriate counterpart.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2014-12-15 15:25:39

Cromulent
Member
From: United Kingdom
Registered: 2011-08-28
Posts: 52
Website

Re: zsh compatible xsession

Already done all of that.

Trilby wrote:

That seems wasteful overall.  There is no reason for the extra subshell whether it is bash or zsh.  Just source the xinitrc.

#!/bin/sh

source ~/.xinitrc

If zsh doesn't implement the 'source' command use the appropriate counterpart.

That was just the default ~/.xsession file that came with Arch Linux. I certainly didn't add that line.

Anyway changed it to source the file instead. Thanks.

Offline

Board footer

Powered by FluxBB