• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

A CLI tool for downloading from pixiv.net


Commit MetaInfo

Revisão4d786f7f460ffcd330989e17e236e4415a3a7283 (tree)
Hora2023-07-16 17:12:06
Autormio <stigma@disr...>
Commitermio

Mensagem de Log

Fix falling back to user picture directory

Mudança Sumário

Diff

--- a/source/app.d
+++ b/source/app.d
@@ -996,6 +996,8 @@ loadConfig()
996996 ProjectDirectories dirs = getProjectDirectories(null, "YumeNeru Software",
997997 "pixiv_down");
998998 UserDirectories userDirs = getUserDirectories();
999+ log.infof("dirs.configDir = %s", dirs.configDir);
1000+ log.infof("userDirs.pictureDir = %s", userDirs.pictureDir);
9991001
10001002 if (exists(dirs.configDir)) {
10011003 string configFilePath = buildPath(dirs.configDir, "settings.conf");
@@ -1004,11 +1006,14 @@ loadConfig()
10041006 parser.read(configFilePath);
10051007 config.baseFolder = parser.get("output", "base_folder",
10061008 userDirs.pictureDir);
1009+ } else {
1010+ config.baseFolder = userDirs.pictureDir;
10071011 }
10081012 } else {
10091013 // Set default values
10101014 config.baseFolder = userDirs.pictureDir;
10111015 }
1016+ log.infof("config.baseFolder = %s", config.baseFolder);
10121017
10131018 string idFilePath = buildPath(dirs.dataDir, ".phpsessid");
10141019