From e3de833e180287d51e410352df56d861e3eb3cfb Mon Sep 17 00:00:00 2001 From: Dmitry Sapozhnikov <11535558+o-sdn-o@users.noreply.github.com> Date: Sun, 26 Apr 2026 19:39:26 +0500 Subject: [PATCH 1/3] Minor edits --- src/netxs/desktopio/baseui.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/netxs/desktopio/baseui.hpp b/src/netxs/desktopio/baseui.hpp index 1a98496ad8..a34eba17f9 100644 --- a/src/netxs/desktopio/baseui.hpp +++ b/src/netxs/desktopio/baseui.hpp @@ -1287,11 +1287,11 @@ namespace netxs::ui struct cleanup { netxs::sptr> action; - cleanup(std::function f) + cleanup(std::function f) : action(ptr::shared(f)) { } - ~cleanup() - { + ~cleanup() + { if (action && action.use_count() == 1) { (*action)(); From c53d0dbc3550bf0694f1846adce58bf0f75afa54 Mon Sep 17 00:00:00 2001 From: Dmitry Sapozhnikov <11535558+o-sdn-o@users.noreply.github.com> Date: Tue, 28 Apr 2026 15:09:13 +0500 Subject: [PATCH 2/3] #915: Try to fix startup crash in RHEL --- src/netxs/desktopio/system.hpp | 4 +++- src/netxs/desktopio/terminal.hpp | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/netxs/desktopio/system.hpp b/src/netxs/desktopio/system.hpp index 5b783acdaf..0edf6561d5 100644 --- a/src/netxs/desktopio/system.hpp +++ b/src/netxs/desktopio/system.hpp @@ -2200,7 +2200,9 @@ namespace netxs::os #if defined(__BSD__) || defined(__ANDROID__) auto uname = ::getlogin(); // username associated with a session, even if it has no controlling terminal. #else - auto uname = ::cuserid(nullptr); + //auto uname = ::cuserid(nullptr); //todo ::cuserid() is incompatible with static linking (causes crash). + auto uname = std::getenv("USER"); + if (!uname) uname = std::getenv("LOGNAME"); #endif auto strid = utf::concat(usrid); auto login = uname && uname[0] ? text{ uname } : strid; diff --git a/src/netxs/desktopio/terminal.hpp b/src/netxs/desktopio/terminal.hpp index a1041d7e58..da08125cd3 100644 --- a/src/netxs/desktopio/terminal.hpp +++ b/src/netxs/desktopio/terminal.hpp @@ -630,11 +630,13 @@ namespace netxs::ui { case 0: default: + // 4: Sixel graphics // 61: VT Level 1 conformance // 22: Color text // 28: Rectangular area operations // 52: Clipboard operations // 10060: VT2D + //todo queue.add("\x1b[?4;61;22;28;52;10060c"); queue.add("\x1b[?61;22;28;52;10060c"); break; } From 3b2875c8ac198992d0402cd06d15a7c620272366 Mon Sep 17 00:00:00 2001 From: Dmitry Sapozhnikov <11535558+o-sdn-o@users.noreply.github.com> Date: Tue, 28 Apr 2026 15:10:07 +0500 Subject: [PATCH 3/3] v2026.04.28 --- src/netxs/desktopio/application.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netxs/desktopio/application.hpp b/src/netxs/desktopio/application.hpp index 053488bbe2..164d8e08f2 100644 --- a/src/netxs/desktopio/application.hpp +++ b/src/netxs/desktopio/application.hpp @@ -22,7 +22,7 @@ namespace netxs::app namespace netxs::app::shared { - static const auto version = "v2026.04.27"; + static const auto version = "v2026.04.28"; static const auto repository = "https://github.com/directvt/vtm"; static const auto usr_config = "~/.config/vtm/settings.xml"s; static const auto sys_config = "/etc/vtm/settings.xml"s;