add wayland specifier to session names (#162)

Create a config option to force ly to add " (Wayland)" to session
names, as long as those names don't already contain the string.
This commit is contained in:
Érico Nogueira Rolim
2020-02-03 03:20:47 -03:00
committed by GitHub
parent 4882cd4548
commit 33934f3ab2
4 changed files with 19 additions and 0 deletions

View File

@@ -184,6 +184,7 @@ void config_load(const char *cfg_path)
{"term_reset_cmd", &config.term_reset_cmd, config_handle_str},
{"tty", &config.tty, config_handle_u8},
{"wayland_cmd", &config.wayland_cmd, config_handle_str},
{"wayland_specifier", &config.wayland_specifier, config_handle_bool},
{"waylandsessions", &config.waylandsessions, config_handle_str},
{"x_cmd", &config.x_cmd, config_handle_str},
{"x_cmd_setup", &config.x_cmd_setup, config_handle_str},
@@ -289,6 +290,7 @@ void config_defaults()
config.term_reset_cmd = strdup("/usr/bin/tput reset");
config.tty = 2;
config.wayland_cmd = strdup(DATADIR "/wsetup.sh");
config.wayland_specifier = false;
config.waylandsessions = strdup("/usr/share/wayland-sessions");
config.x_cmd = strdup("/usr/bin/X");
config.x_cmd_setup = strdup(DATADIR "/xsetup.sh");