Open the application on local disk
-
QString program = "C:/Program Files (x86)/My Project/MyApp.exe"; QStringList arguments; QProcess *myProcess = new QProcess(this); myProcess->start(program, arguments); myProcess->waitForStarted();if Windows is in a language other than English, will the folder still work, will the application still open? this is my code.
-
QString program = "C:/Program Files (x86)/My Project/MyApp.exe"; QStringList arguments; QProcess *myProcess = new QProcess(this); myProcess->start(program, arguments); myProcess->waitForStarted();if Windows is in a language other than English, will the folder still work, will the application still open? this is my code.
@Blackzero said in Open the application on local disk:
will the folder still work, will the application still open?
It should, because these folders are always in English, Windows simply translates them into system language when it presents them to the user (like in Windows Explorer). You can verify that in cmd.exe (dir c:).
But you should not hardcode such paths. Instead use https://doc.qt.io/qt-6/qstandardpaths.html to request needed paths.