diff --git a/daemon/daemon.cc b/daemon/daemon.cc index 7b0e02032..83c399659 100644 --- a/daemon/daemon.cc +++ b/daemon/daemon.cc @@ -379,11 +379,12 @@ tr_rpc_callback_status on_rpc_callback(tr_session* /*session*/, tr_rpc_callback_ tr_variant load_settings(char const* config_dir) { auto app_defaults = tr_variant::make_map(); - tr_variantDictAddStr(&app_defaults, TR_KEY_watch_dir, ""sv); + tr_variantDictAddStrView(&app_defaults, TR_KEY_watch_dir, ""sv); tr_variantDictAddBool(&app_defaults, TR_KEY_watch_dir_enabled, false); tr_variantDictAddBool(&app_defaults, TR_KEY_watch_dir_force_generic, false); tr_variantDictAddBool(&app_defaults, TR_KEY_rpc_enabled, true); tr_variantDictAddBool(&app_defaults, TR_KEY_start_paused, false); + tr_variantDictAddStrView(&app_defaults, TR_KEY_pidfile, ""sv); return tr_sessionLoadSettings(&app_defaults, config_dir, MyName); } diff --git a/docs/Editing-Configuration-Files.md b/docs/Editing-Configuration-Files.md index 4414ee7be..986e8e699 100644 --- a/docs/Editing-Configuration-Files.md +++ b/docs/Editing-Configuration-Files.md @@ -63,6 +63,7 @@ Here is a sample of the three basic types: respectively Boolean, Number and Stri * **rename-partial-files:** Boolean (default = true) Postfix partially downloaded files with ".part". * **start-added-torrents:** Boolean (default = true) Start torrents as soon as they are added. * **trash-can-enabled:** Boolean (default = true) Whether to move the torrents to the system's trashcan or unlink them right away upon deletion from Transmission. + _Note: transmission-gtk only._ * **trash-original-torrent-files:** Boolean (default = false) Delete torrents added from the watch directory. * **umask:** String (default = "022") Sets Transmission's file mode creation mask. See [the umask(2) manpage](https://man7.org/linux/man-pages/man2/umask.2.html) for more information. * **watch-dir:** String