folder config

Forum to talk about the development of SMPlayer (code, patches...).

folder config

Postby rinat84 » Mon Sep 04, 2017 6:46 am

подправил paths.cpp
Code: Select all
--- smplayer-17.9.0/src/paths.cpp   2017-01-07 03:43:39.000000000 +0500
+++ smplayer/src/paths.cpp   2017-09-04 10:28:23.000000000 +0500
@@ -137,7 +137,7 @@
 #ifdef PORTABLE_APP
       return appPath();
 #else
-      #if !defined(Q_OS_WIN) && !defined(Q_OS_OS2)
+      #ifdef Q_OS_LINUX
       const char * XDG_CONFIG_HOME = getenv("XDG_CONFIG_HOME");
       if (XDG_CONFIG_HOME!=NULL) {
          /* qDebug("Paths::configPath: XDG_CONFIG_HOME: %s", XDG_CONFIG_HOME); */
@@ -145,8 +145,10 @@
       }
       else
       return QDir::homePath() + "/.config/smplayer";
-      #else
+      #elif defined(Q_OS_OS2)
       return QDir::homePath() + "/.smplayer";
+      #elif defined(Q_OS_WIN)
+      return QDir::homePath() + "/AppData/Roaming/smplayer";
       #endif
 #endif
    }
rinat84
 
Posts: 1
Joined: Mon Sep 04, 2017 6:33 am

Return to Development

Who is online

Users browsing this forum: No registered users and 1 guest