From: François Revol Date: Tue, 10 Aug 2021 16:35:23 +0000 (+0200) Subject: Fallback to uname -o for systems without /etc/issue X-Git-Tag: 0.7.1~9 X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/commitdiff_plain/2342ac37a40c5af434c2b24ada4a8ed3778ad6aa?hp=caaa2ad80d4db676a9f426f35fac70c9e3caabc1 Fallback to uname -o for systems without /etc/issue This includes Haiku. Not necessary to build but it removes an error message. --- diff --git a/src/global.pri b/src/global.pri index 4deccb0..bebbbb4 100644 --- a/src/global.pri +++ b/src/global.pri @@ -9,7 +9,7 @@ DEFINES += VERSION=\\\"$$VERSION\\\" # Define 'MAEMO' specific CONFIG/DEFINE # To handle 'MAEMO' specific soruces/code -DISTRO = $$system(cat /etc/issue) +DISTRO = $$system(cat /etc/issue 2>/dev/null || uname -o) contains( DISTRO, [Mm]aemo ) { # for 'MAEMO' specific source code parts DEFINES += MAEMO