mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Use qputenv/qgetenv from Qt for better cross compatibility
This commit is contained in:
parent
aae85b4498
commit
2f7b20c704
4 changed files with 8 additions and 24 deletions
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue