[Pkg-running-devel] [openambit] 85/131: Use environment vairable for homedir instead of tilde
Christian Perrier
bubulle at moszumanska.debian.org
Thu Jul 17 20:19:14 UTC 2014
This is an automated email from the git hooks/post-receive script.
bubulle pushed a commit to branch master
in repository openambit.
commit f801b9536172d1fab74ef753287df20f41a2b4f6
Author: Emil Ljungdahl <emil at kratern.se>
Date: Thu Jan 30 11:10:23 2014 +0100
Use environment vairable for homedir instead of tilde
---
src/openambit/main.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/openambit/main.cpp b/src/openambit/main.cpp
index 4bcf5a8..696f026 100644
--- a/src/openambit/main.cpp
+++ b/src/openambit/main.cpp
@@ -38,7 +38,7 @@ int main(int argc, char *argv[])
QCoreApplication::setOrganizationName("Openambit");
QCoreApplication::setApplicationName("Openambit");
#ifdef Q_WS_X11
- QSettings::setPath(QSettings::NativeFormat, QSettings::UserScope, "~/.openambit/openambit.conf");
+ QSettings::setPath(QSettings::NativeFormat, QSettings::UserScope, QString(getenv("HOME")) + "/.openambit/openambit.conf");
#endif
MainWindow w;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-running/openambit.git
More information about the Pkg-running-devel
mailing list