tvrzna / emptty

Dead simple CLI Display Manager on TTY
MIT License
696 stars 26 forks source link

Can I have a bash shell as one of my desktop sessions? #95

Closed alexflint closed 1 year ago

alexflint commented 1 year ago

With just this in my ~/.config/emptty:

Exec=bash

when I log in using emptty I am immediately logged out again. The log shows "Starting bash" and then on the next line, "bash finished". Why? What is the reommended way to have of my session options be a bash file?

tvrzna commented 1 year ago

Emptty is not meant to provide this kind of functionality. To be honest, agetty is much better choice in this case. However this could be achievable by little patch -> in session.go needs to be set

session.Stdout = os.Stdout
session.Stderr = os.Stderr
session.Stdin = os.Stdin

Then you have to make sure you've called bash --login instead of just bash, and that you have Env=wayland (to prevent starting of Xorg). And also make sure you have set your $TERM env variable.