mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-01-06 09:03:58 +00:00
Fixed most depratated warnings.
This commit is contained in:
@@ -107,7 +107,8 @@ void SingleApplicationPrivate::genBlockServerName( int timeout )
|
||||
#endif
|
||||
#ifdef Q_OS_UNIX
|
||||
QProcess process;
|
||||
process.start( QStringLiteral("whoami") );
|
||||
process.start( QStringLiteral("whoami"),QStringList{} );
|
||||
|
||||
if( process.waitForFinished( timeout ) &&
|
||||
process.exitCode() == QProcess::NormalExit) {
|
||||
appData.addData( process.readLine() );
|
||||
|
||||
Reference in New Issue
Block a user