Trivial Backport: Fix secondary windows ~ expansion over DBus

This commit is contained in:
Stephen Boddy 2016-12-02 22:45:25 +01:00
parent 76dec10993
commit 46c53a0599
1 changed files with 2 additions and 1 deletions

View File

@ -134,7 +134,8 @@ icon for the window (by file or name)'))
if options.working_directory:
if os.path.exists(os.path.expanduser(options.working_directory)):
os.chdir(os.path.expanduser(options.working_directory))
options.working_directory = os.path.expanduser(options.working_directory)
os.chdir(options.working_directory)
else:
err('OptionParse::parse_options: %s does not exist' %
options.working_directory)