diff options
Diffstat (limited to 'env')
-rw-r--r-- | env/common.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/env/common.c b/env/common.c index 208e2adaa01..ee957c0a8c0 100644 --- a/env/common.c +++ b/env/common.c @@ -235,6 +235,11 @@ int env_get_yesno(const char *var) 1 : 0; } +bool env_get_autostart(void) +{ + return env_get_yesno("autostart") == 1; +} + /* * Look up the variable from the default environment */ |