aboutsummarylogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorRoberto E. Vargas Caballero2014-08-28 12:48:29 +0200
committerRoberto E. Vargas Caballero2014-09-23 07:12:41 +0200
commit8b203361b2c7138aa2465853938fa101eaabbb16 (patch)
tree90b2057911f53f1a51cef45e900764bfb600849b /config.def.h
parent60871009bd30ad12603815f614a1c81c89da902d (diff)
downloadaur-8b203361b2c7138aa2465853938fa101eaabbb16.tar.gz
Add support for utmp in st
St runs an interactive shell and not a login shell, and it means that profile is not loaded. The default terminal configuration in some system is not the correct for st, but since profile is not loaded there is no way of getting a script configures the correct values. St doesn't update the utmp files, this is the job of another suckless tool, utmp. Utmp also opens a login shell (it is the logical behaviour when you create a new user record) it is a good option execute utmp and then get a correct input in utmp, wtmp and lastlog file, and execute the content of the profile.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index fe810789e50d..cc16f9766450 100644
--- a/config.def.h
+++ b/config.def.h
@@ -8,6 +8,7 @@
static char font[] = "Liberation Mono:pixelsize=12:antialias=false:autohint=false";
static int borderpx = 2;
static char shell[] = "/bin/sh";
+static char *utmp = NULL;
/* identification sequence returned in DA and DECID */
static char vtiden[] = "\033[?6c";