From 6c9bdbb372001dc8f653ca5a2f603eb8110ff1c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Wed, 12 Feb 2020 00:29:40 +0100 Subject: [PATCH] fix newlines --- workdirfs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/workdirfs.py b/workdirfs.py index 1642ea1..2354c9f 100755 --- a/workdirfs.py +++ b/workdirfs.py @@ -207,11 +207,11 @@ def main(root, mountpoint): else: print(line, end='') if not foundarchive: - with open(os.environ['HOME']+'/.config/user-dirs.dirs\n', 'a') as fh: - fh.write("XDG_ARCHIVE_DIR=\""+root+'"') + with open(os.environ['HOME']+'/.config/user-dirs.dirs', 'a') as fh: + fh.write("XDG_ARCHIVE_DIR=\""+root+'"\n') if not foundwork: - with open(os.environ['HOME']+'/.config/user-dirs.dirs\n', 'a') as fh: - fh.write("XDG_WORK_DIR=\""+mountpoint+'"') + with open(os.environ['HOME']+'/.config/user-dirs.dirs', 'a') as fh: + fh.write("XDG_WORK_DIR=\""+mountpoint+'"\n') FUSE(Passthrough(root), mountpoint, nothreads=True, foreground=True)