add newlines
This commit is contained in:
parent
84e7a8b3d7
commit
15e4280fb8
1 changed files with 4 additions and 4 deletions
|
@ -199,18 +199,18 @@ def main(root, mountpoint):
|
||||||
inplace=True) as fh:
|
inplace=True) as fh:
|
||||||
for line in fh:
|
for line in fh:
|
||||||
if line.startswith('XDG_ARCHIVE_DIR'):
|
if line.startswith('XDG_ARCHIVE_DIR'):
|
||||||
print("XDG_ARCHIVE_DIR=\""+root+'"')
|
print("XDG_ARCHIVE_DIR=\""+root+'"\n')
|
||||||
foundarchive=True
|
foundarchive=True
|
||||||
elif line.startswith('XDG_WORK_DIR'):
|
elif line.startswith('XDG_WORK_DIR'):
|
||||||
print("XDG_WORK_DIR=\""+mountpoint+'"')
|
print("XDG_WORK_DIR=\""+mountpoint+'"\n')
|
||||||
foundwork=True
|
foundwork=True
|
||||||
else:
|
else:
|
||||||
print(line, end='')
|
print(line, end='')
|
||||||
if not foundarchive:
|
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+'"')
|
fh.write("XDG_ARCHIVE_DIR=\""+root+'"')
|
||||||
if not foundwork:
|
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+'"')
|
fh.write("XDG_WORK_DIR=\""+mountpoint+'"')
|
||||||
|
|
||||||
FUSE(Passthrough(root), mountpoint, nothreads=True, foreground=True)
|
FUSE(Passthrough(root), mountpoint, nothreads=True, foreground=True)
|
||||||
|
|
Loading…
Reference in a new issue