From 1180d34511c9aee1e4b0a470da57a8433f2800c0 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Tue, 16 Apr 2019 01:02:40 +0200 Subject: sysinfo: show debian version --- src/sysinfo.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/sysinfo.cpp b/src/sysinfo.cpp index 0290e9b..4ef988e 100644 --- a/src/sysinfo.cpp +++ b/src/sysinfo.cpp @@ -612,6 +612,14 @@ namespace { this->distro_release = s.substr(start + 1, s.size() - start - 2); } } + input.close(); + input.clear(); + } + if (this->distro_release.empty()) { + input.open("/etc/debian_version"); + if (input) { + getline(input, this->distro_release); + } } } }; -- cgit v1.2.1