mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Use qputenv/qgetenv from Qt for better cross compatibility
This commit is contained in:
@@ -272,7 +272,7 @@ int main(int argc, char *argv[]){
|
||||
}
|
||||
#endif
|
||||
// Set environment variable
|
||||
if(putenv((char*)"QBITTORRENT="VERSION)) {
|
||||
if (qputenv("QBITTORRENT", QByteArray(VERSION))) {
|
||||
std::cerr << "Couldn't set environment variable...\n";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user