From 5fb6ed213aa8b4b1101082671f57db45d7b10d01 Mon Sep 17 00:00:00 2001 From: zecke Date: Sat, 16 Oct 2004 22:50:23 +0000 Subject: -Remove hardcoding of "/opt/QtPalmtop/" and use QPEApplication::qpeDir instead In future we need a OpieStandardDir with locateFile, locateUserSetting and such --- (limited to 'noncore') diff --git a/noncore/net/opietooth/manager/bluebase.cpp b/noncore/net/opietooth/manager/bluebase.cpp index ee01b61..90e44cb 100644 --- a/noncore/net/opietooth/manager/bluebase.cpp +++ b/noncore/net/opietooth/manager/bluebase.cpp @@ -160,7 +160,7 @@ void BlueBase::writeToHciConfig() owarn << "writeToHciConfig" << oendl; HciConfWrapper hciconf ( "/etc/bluetooth/hcid.conf" ); hciconf.load(); - hciconf.setPinHelper( "/opt/QtPalmtop/bin/bluepin" ); + hciconf.setPinHelper( QPEApplication::qpeDir() + "bin/bluepin" ); hciconf.setName( m_deviceName ); hciconf.setEncrypt( m_useEncryption ); hciconf.setAuth( m_enableAuthentification ); diff --git a/noncore/settings/usermanager/userdialog.cpp b/noncore/settings/usermanager/userdialog.cpp index 3616507..9dfb2af 100644 --- a/noncore/settings/usermanager/userdialog.cpp +++ b/noncore/settings/usermanager/userdialog.cpp @@ -265,11 +265,11 @@ bool UserDialog::addUser(int uid, int gid) if(!(adduserDialog->userImage.isNull())) { QDir d; - if(!(d.exists("/opt/QtPalmtop/pics/users"))) + if(!(d.exists(QPEApplication::qpeDir() + "pics/users"))) { - d.mkdir("/opt/QtPalmtop/pics/users"); + d.mkdir(QPEApplication::qpeDir() + "pics/users"); } - QString filename="/opt/QtPalmtop/pics/users/"+accounts->pw_name+".png"; + QString filename= QPEApplication::qpeDir()+"pics/users/"+accounts->pw_name+".png"; // adduserDialog->userImage=adduserDialog->userImage.smoothScale(48,48); adduserDialog->userImage.save(filename,"PNG"); } @@ -436,11 +436,11 @@ bool UserDialog::editUser(const char *username) if(!(edituserDialog->userImage.isNull())) { QDir d; - if(!(d.exists("/opt/QtPalmtop/pics/users"))) + if(!(d.exists(QPEApplication::qpeDir()+"pics/users"))) { - d.mkdir("/opt/QtPalmtop/pics/users"); + d.mkdir(QPEApplication::qpeDir()+"pics/users"); } - QString filename="/opt/QtPalmtop/pics/users/"+accounts->pw_name+".png"; + QString filename=QPEApplication::qpeDir()+"pics/users/"+accounts->pw_name+".png"; // edituserDialog->userImage=edituserDialog->userImage.smoothScale(48,48); edituserDialog->userImage.save(filename,"PNG"); } -- cgit v0.9.0.2