mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-14 08:39:31 +02:00
Replace getenv("HOME") by RDGetHomeDir() in RDMonitorConfig::RDMonitorConfig
This commit is contained in:
parent
dd2fb90856
commit
c3e5f54083
@ -28,13 +28,17 @@
|
||||
#include <rdprofile.h>
|
||||
|
||||
#include <rdmonitor_config.h>
|
||||
#include <rdconf.h>
|
||||
|
||||
RDMonitorConfig::RDMonitorConfig()
|
||||
{
|
||||
clear();
|
||||
mon_filename="/.rdmonitorrc";
|
||||
if(getenv("HOME")!=NULL) {
|
||||
mon_filename=QString(getenv("HOME"))+mon_filename;
|
||||
|
||||
bool home_found = false;
|
||||
QString home = RDGetHomeDir(&home_found);
|
||||
if (home_found) {
|
||||
mon_filename=home+mon_filename;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user