so, maybe the locale settings aren't neccessary anymore when the pms is started via sudo
actually i have to correct myself.
without the export locale settings in the plex.sh file i get errors when scanning files with non ascii characters.
Aug 30, 2011 15:36:59 [0xb594e6d0] ERROR - Error in Python: Running scanner:
Traceback (most recent call last):
File "/mnt/usenet/apps/PlexLibrary/Plex Media Server/Plug-ins/Scanners.bundle/Contents/Resources/Series/Plex Series Scanner.py", line 44, in Scan
VideoFiles.Scan(path, files, mediaList, subdirs)
File "/mnt/usenet/apps/PlexLibrary/Plex Media Server/Plug-ins/Scanners.bundle/Contents/Resources/Common/VideoFiles.py", line 141, in Scan
Filter.Scan(path, files, mediaList, subdirs, video_exts)
File "/mnt/usenet/apps/PlexLibrary/Plex Media Server/Plug-ins/Scanners.bundle/Contents/Resources/Common/Filter.py", line 24, in Scan
if os.path.exists(filename) == False or os.path.getsize(filename) == 0:
File "/usr/local/plex/Resources/Python/lib/python2.7/genericpath.py", line 18, in exists
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 110: ordinal not in range(128)
with the two export lines in the plex.sh file, every file is scanned fine.
i think, "sudo -u nobody locale" returns the locale settings of the user root and these settings are used when starting plex.sh
but when the plex media scanner is started as user nobody, the nobody locale settings are used. because of this the two export lines in the plex.sh file are necessary