From 15e4280fb832e497c2aab6831c93fecda94e37fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Wed, 12 Feb 2020 00:27:30 +0100 Subject: [PATCH] add newlines --- workdirfs.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/workdirfs.py b/workdirfs.py index 8403ac6..1642ea1 100755 --- a/workdirfs.py +++ b/workdirfs.py @@ -199,18 +199,18 @@ def main(root, mountpoint): inplace=True) as fh: for line in fh: if line.startswith('XDG_ARCHIVE_DIR'): - print("XDG_ARCHIVE_DIR=\""+root+'"') + print("XDG_ARCHIVE_DIR=\""+root+'"\n') foundarchive=True elif line.startswith('XDG_WORK_DIR'): - print("XDG_WORK_DIR=\""+mountpoint+'"') + print("XDG_WORK_DIR=\""+mountpoint+'"\n') foundwork=True else: print(line, end='') if not foundarchive: - with open(os.environ['HOME']+'/.config/user-dirs.dirs', 'a') as fh: + with open(os.environ['HOME']+'/.config/user-dirs.dirs\n', 'a') as fh: fh.write("XDG_ARCHIVE_DIR=\""+root+'"') if not foundwork: - with open(os.environ['HOME']+'/.config/user-dirs.dirs', 'a') as fh: + with open(os.environ['HOME']+'/.config/user-dirs.dirs\n', 'a') as fh: fh.write("XDG_WORK_DIR=\""+mountpoint+'"') FUSE(Passthrough(root), mountpoint, nothreads=True, foreground=True)