Closed ashish-yadav11 closed 4 years ago
The problem is in line 100, i.e., i3.command(f'exec cd "{working_directory}" && {command}')
of i3_resurrect/programs.py.
My current workaround is to replace line 100 with os.system(f'cd "{working_directory}" && {command} & disown')
.
One question out of the context; can't python-i3ipc in the official repo in arch be used instead of i3ipc-python-git in aur?
My current workaround is to replace line 100 with
os.system(f'cd "{working_directory}" && {command} & disown')
.
See #40 for why I use i3's exec command
One question out of the context; can't python-i3ipc in the official repo in arch be used instead of i3ipc-python-git in aur?
See #72 and #74, and everyone installing these AUR packages should have no trouble installing another AUR package as a dependency.
The following resolves the issue too -
replace cmdline = [f'"{arg}"' for arg in cmdline if arg != '']
on line 94 in programs.py with cmdline = [f'\\"{arg}\\"' for arg in cmdline if arg != '']
and i3.command(f'exec cd "{working_directory}" && {command}')
on line 100 with i3.command(f'exec "cd \\"{working_directory}\\" && {command}"')
.
See https://github.com/i3/i3/issues/2122.
Ok thanks! I'll look into that
The following resolves the issue too - replace
cmdline = [f'"{arg}"' for arg in cmdline if arg != '']
on line 94 in programs.py withcmdline = [f'\\"{arg}\\"' for arg in cmdline if arg != '']
andi3.command(f'exec cd "{working_directory}" && {command}')
on line 100 withi3.command(f'exec "cd \\"{working_directory}\\" && {command}"')
. See i3/i3#2122.
So does this actually work if the command has a comma in it or does it only fix the case where there's a comma in the working directory path?
EDIT: Ah nevermind
Okular open with file having name starting with comma doesn't launch while restoring.
Steps to reproduce the behavior;
Expected behavior okular should launch
System information (please complete the following information):
i3-resurrect --version
): 1.4.2i3 -v
): 4.18python -V
): 3.8.1