File: 04_use_config_when_daemon.diff

package info (click to toggle)
sabnzbdplus 3.7.1%2Bdfsg-2
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm
  • size: 14,636 kB
  • sloc: javascript: 36,517; python: 31,863; xml: 459; sh: 158; makefile: 38
file content (12 lines) | stat: -rw-r--r-- 438 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
# Use the normal configuration when run as a daemon
--- a/SABnzbd.py
+++ b/SABnzbd.py
@@ -367,7 +367,7 @@
 
 def get_user_profile_paths():
     """Get the default data locations on Windows"""
-    if sabnzbd.DAEMON:
+    if sabnzbd.DAEMON and sabnzbd.WIN32:
         # In daemon mode, do not try to access the user profile
         # just assume that everything defaults to the program dir
         sabnzbd.DIR_LCLDATA = sabnzbd.DIR_PROG