Unfortunately, what I need is not to append flags, but to remove the existing ones which I can't find any way to do.
I can do the following in my main.cpp file:
qDebug() << qgetenv("QTWEBENGINE_CHROMIUM_FLAGS"); qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--anything-i-want");But the output from the getenv is just "", so I'm not sure where its getting the flags from.
The addition of the chromium flag is indeed working, but the final command line shown by chrome://gpu is this: (which includes the --disable-gpu at the end)
webglcpptest --anything-i-want --browser-subprocess-path=/usr/lib/x86_64-linux-gnu/qt5/libexec/QtWebEngineProcess --application-name=webglcpptest.red --no-sandbox --enable-threaded-compositing --disable-speech-api --enable-features=AllowContentInitiatedDataUrlNavigations,NetworkServiceInProcess,TracingServiceInProcess --disable-features=MojoVideoCapture,FontSrcLocalMatching,UseSkiaRenderer,DnsOverHttpsUpgrade,ConsolidatedMovementXY,InstalledApp,BackgroundFetch,SmsReceiver,WebPayments,WebUSB,PictureInPicture --disable-gpuIt doesn't seem possible to override the existing flag with another, I've tried things like --disable-gpu=false and so on, I've tried finding a way to comment out the rest of the flags, even tried a buffer overflow to get rid of the last flag...
So I have to find where the flags are coming from and remove them.