diff --git a/server/main.cpp b/server/main.cpp index dd653176..dd1030a9 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -235,7 +235,7 @@ int main(int argc, char *argv[]) // If running in a snappy environment, print out some details about it. - if (!qgetenv("SNAP").isEmpty()) { + if (!qEnvironmentVariableIsEmpty("SNAP")) { // Note: http://snapcraft.io/docs/reference/env qCInfo(dcApplication()) << "Snap name :" << qgetenv("SNAP_NAME"); qCInfo(dcApplication()) << "Snap version :" << qgetenv("SNAP_VERSION"); diff --git a/tests/scripts/getthingclasses.sh b/tests/scripts/getthingclasses.sh new file mode 100755 index 00000000..bdcbaa51 --- /dev/null +++ b/tests/scripts/getthingclasses.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +if [ -z $1 ]; then + echo "usage: $0 host " + exit 1 +fi + +if [ -z $2 ]; then +cat <