author | llornkcor <llornkcor> | 2002-02-09 04:13:08 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-02-09 04:13:08 (UTC) |
commit | 864a3a1dc5bdcae601626aa1f6b3cf8e85385cf3 (patch) (unidiff) | |
tree | 6f6f181c0730982e58166309323dfcbb718e6e1f | |
parent | b440f07b1f20877618e33248a65bf069150d72c4 (diff) | |
download | opie-864a3a1dc5bdcae601626aa1f6b3cf8e85385cf3.zip opie-864a3a1dc5bdcae601626aa1f6b3cf8e85385cf3.tar.gz opie-864a3a1dc5bdcae601626aa1f6b3cf8e85385cf3.tar.bz2 |
uses $HOME
-rw-r--r-- | core/applets/screenshotapplet/screenshot.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/core/applets/screenshotapplet/screenshot.cpp b/core/applets/screenshotapplet/screenshot.cpp index d70b57c..20e8554 100644 --- a/core/applets/screenshotapplet/screenshot.cpp +++ b/core/applets/screenshotapplet/screenshot.cpp | |||
@@ -16,2 +16,4 @@ | |||
16 | #include <qapplication.h> | 16 | #include <qapplication.h> |
17 | #include <stdlib.h> | ||
18 | |||
17 | 19 | ||
@@ -25,3 +27,3 @@ | |||
25 | 27 | ||
26 | 28 | #include <qdir.h> | |
27 | #include <qfileinfo.h> | 29 | #include <qfileinfo.h> |
@@ -129,3 +131,9 @@ void ScreenshotControl::savePixmap() | |||
129 | 131 | ||
130 | fileName="/home/root/Documents/image/png/"+fileName+".png"; | 132 | QString dirName = QDir::homeDirPath()+"/Documents/image/png/"; |
133 | if( !QDir( dirName).exists() ) { | ||
134 | qDebug("making dir "+dirName); | ||
135 | QString msg = "mkdir -p "+dirName; | ||
136 | system(msg.latin1()); | ||
137 | } | ||
138 | fileName=dirName+fileName+".png"; | ||
131 | lnk.setFile(fileName); //sets File property | 139 | lnk.setFile(fileName); //sets File property |