fix newlines

This commit is contained in:
Jakobus Schürz 2020-02-12 00:29:40 +01:00
parent 15e4280fb8
commit 6c9bdbb372

View file

@ -207,11 +207,11 @@ def main(root, mountpoint):
else: else:
print(line, end='') print(line, end='')
if not foundarchive: if not foundarchive:
with open(os.environ['HOME']+'/.config/user-dirs.dirs\n', 'a') as fh: with open(os.environ['HOME']+'/.config/user-dirs.dirs', 'a') as fh:
fh.write("XDG_ARCHIVE_DIR=\""+root+'"') fh.write("XDG_ARCHIVE_DIR=\""+root+'"\n')
if not foundwork: if not foundwork:
with open(os.environ['HOME']+'/.config/user-dirs.dirs\n', 'a') as fh: with open(os.environ['HOME']+'/.config/user-dirs.dirs', 'a') as fh:
fh.write("XDG_WORK_DIR=\""+mountpoint+'"') fh.write("XDG_WORK_DIR=\""+mountpoint+'"\n')
FUSE(Passthrough(root), mountpoint, nothreads=True, foreground=True) FUSE(Passthrough(root), mountpoint, nothreads=True, foreground=True)