From 756c0aa66329249f0e0a2829890a0a447689a2a5 Mon Sep 17 00:00:00 2001 From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Fri, 15 Nov 2019 15:04:01 +0000 Subject: New port: x11/ly: TUI (ncurses-like) display manager for X and Wayland Ly is a lightweight TUI (ncurses-like) display manager for Linux and BSD. It supports both X11 and Wayland sessions. WWW: https://github.com/cylgom/ly Reviewed by: mat Differential Revision: https://reviews.freebsd.org/D22228 --- x11/ly/files/patch-src_config.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 x11/ly/files/patch-src_config.c (limited to 'x11/ly/files/patch-src_config.c') diff --git a/x11/ly/files/patch-src_config.c b/x11/ly/files/patch-src_config.c new file mode 100644 index 000000000000..697407edca34 --- /dev/null +++ b/x11/ly/files/patch-src_config.c @@ -0,0 +1,38 @@ +--- src/config.c.orig 2019-06-26 21:11:33 UTC ++++ src/config.c +@@ -9,8 +9,8 @@ + #include + + #ifndef DEBUG +- #define INI_LANG "/etc/ly/lang/%s.ini" +- #define INI_CONFIG "/etc/ly/config.ini" ++ #define INI_LANG "%%ETCDIR%%/lang/%s.ini" ++ #define INI_CONFIG "%%ETCDIR%%/config.ini" + #else + #define INI_LANG "../res/lang/%s.ini" + #define INI_CONFIG "../res/config.ini" +@@ -179,6 +179,7 @@ void config_load() + {"shutdown_cmd", &config.shutdown_cmd, config_handle_str}, + {"term_reset_cmd", &config.term_reset_cmd, config_handle_str}, + {"tty", &config.tty, config_handle_u8}, ++ {"vt", &config.vt, config_handle_u8}, + {"wayland_cmd", &config.wayland_cmd, config_handle_str}, + {"waylandsessions", &config.waylandsessions, config_handle_str}, + {"x_cmd", &config.x_cmd, config_handle_str}, +@@ -187,7 +188,7 @@ void config_load() + {"xsessions", &config.xsessions, config_handle_str}, + }; + +- uint16_t map_len[] = {34}; ++ uint16_t map_len[] = {35}; + struct configator_param* map[] = + { + map_no_section, +@@ -284,6 +285,7 @@ void config_defaults() + config.shutdown_cmd = strdup("/sbin/shutdown -a now"); + config.term_reset_cmd = strdup("/usr/bin/tput reset"); + config.tty = 2; ++ config.vt = 9; + config.wayland_cmd = strdup("/etc/ly/wsetup.sh"); + config.waylandsessions = strdup("/usr/share/wayland-sessions"); + config.x_cmd = strdup("/usr/bin/X"); -- cgit v1.2.3