- Linux server start script: removed welcome message, fix in server info

- removed command line outputs for Svg/Jpeg modes used
- use the default country if no country is given in the command line options
This commit is contained in:
Volker Fischer 2019-06-20 11:41:29 +02:00
parent 415a896897
commit b7df71e596
3 changed files with 7 additions and 6 deletions

View file

@ -8,7 +8,7 @@ Type=simple
Restart=always
RestartSec=1
User=jamulus
ExecStart=/bin/bash -c '/usr/bin/jamulus -s -n --servername $(uname -n) -l /var/log/jamulus -e jamulus.fischvolk.de -g -w "Connected..." -o "$(uname -n);;;"'
ExecStart=/bin/bash -c '/usr/bin/jamulus -s -n --servername $(uname -n) -l /var/log/jamulus -e jamulus.fischvolk.de -g -o "$(uname -n);;"'
[Install]
WantedBy=multi-user.target

View file

@ -335,8 +335,8 @@ CJpegHistoryGraph::CJpegHistoryGraph() :
}
// if all else fails, it's left at -1
QTextStream& tsConsoleStream = *( ( new ConsoleWriterFactory() )->get() );
tsConsoleStream << "CJpegHistoryGraph" << endl; // on console
// QTextStream& tsConsoleStream = *( ( new ConsoleWriterFactory() )->get() );
// tsConsoleStream << "CJpegHistoryGraph" << endl; // on console
// Connections -------------------------------------------------------------
@ -411,8 +411,8 @@ CSvgHistoryGraph::CSvgHistoryGraph() :
svgRootAttributes.append ( "xmlns", "http://www.w3.org/2000/svg" );
svgRootAttributes.append ( "xmlns:xlink", "http://www.w3.org/1999/xlink" );
QTextStream& tsConsoleStream = *( ( new ConsoleWriterFactory() )->get() );
tsConsoleStream << "CSvgHistoryGraph" << endl; // on console
// QTextStream& tsConsoleStream = *( ( new ConsoleWriterFactory() )->get() );
// tsConsoleStream << "CSvgHistoryGraph" << endl; // on console
// Connections -------------------------------------------------------------

View file

@ -85,7 +85,8 @@ CServerListManager::CServerListManager ( const quint16 iNPortNum,
// [this server country as QLocale ID]
const int iCountry = slServInfoSeparateParams[2].toInt();
if ( ( iCountry >= 0 ) && ( iCountry <= QLocale::LastCountry ) )
if ( !slServInfoSeparateParams[2].isEmpty() && ( iCountry >= 0 ) && ( iCountry <= QLocale::LastCountry ) )
{
ThisServerListEntry.eCountry = static_cast<QLocale::Country> (
iCountry );