diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-07 02:18:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-07 02:18:27 +0300 |
commit | 0f85899c0aad7d6dbc15490189e97a68b4653d1c (patch) | |
tree | 08e31a7fbbd5661a7a1791cd7858f7581236e0d3 /src/client.cpp | |
parent | 4c057739d0538d01481643848a6cb558e0ef4e51 (diff) | |
download | plus-0f85899c0aad7d6dbc15490189e97a68b4653d1c.tar.gz plus-0f85899c0aad7d6dbc15490189e97a68b4653d1c.tar.bz2 plus-0f85899c0aad7d6dbc15490189e97a68b4653d1c.tar.xz plus-0f85899c0aad7d6dbc15490189e97a68b4653d1c.zip |
Get real desktop dir in linux for screenshots.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/client.cpp b/src/client.cpp index e7083f943..95317f682 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -1898,19 +1898,9 @@ void Client::initScreenshotDir() std::string configScreenshotDir = config.getStringValue("screenshotDirectory"); if (!configScreenshotDir.empty()) - { mScreenshotDir = configScreenshotDir; - } else - { -#ifdef WIN32 - mScreenshotDir = getSpecialFolderLocation(CSIDL_MYPICTURES); - if (mScreenshotDir.empty()) - mScreenshotDir = getSpecialFolderLocation(CSIDL_DESKTOP); -#else - mScreenshotDir = std::string(PHYSFS_getUserDir()) + "Desktop"; -#endif - } + mScreenshotDir = getDesktopDir(); //config.setValue("screenshotDirectory", mScreenshotDir); logger->log("screenshotDirectory: " + mScreenshotDir); |