Skip to content

Commit

Permalink
escape nautilus path
Browse files Browse the repository at this point in the history
  • Loading branch information
Stunkymonkey authored and ximion committed Apr 20, 2023
1 parent 1ca01bb commit 5bbd0fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/nautilus/open-tilix.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def _checkdecode(s):

def open_terminal_in_file(filename):
if filename:
# escape filename quotations
filename = filename.replace('"', '\\"')
call('{0} -w "{1}" &'.format(TERMINAL, filename), shell=True)
else:
call("{0} &".format(TERMINAL), shell=True)
Expand Down

0 comments on commit 5bbd0fc

Please sign in to comment.