Skip to content

Commit

Permalink
Merge 78fb09d into f1ed792
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jun 9, 2019
2 parents f1ed792 + 78fb09d commit 4fab8c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PIL/ImageShow.py
Expand Up @@ -125,7 +125,7 @@ class MacViewer(Viewer):
def get_command(self, file, **options):
# on darwin open returns immediately resulting in the temp
# file removal while app is opening
command = "open -a /Applications/Preview.app"
command = "open -a Preview.app"
command = "(%s %s; sleep 20; rm -f %s)&" % (command, quote(file),
quote(file))
return command
Expand All @@ -138,7 +138,7 @@ def show_file(self, file, **options):
with open(path, "r") as f:
subprocess.Popen([
'im=$(cat);'
'open -a /Applications/Preview.app $im;'
'open -a Preview.app $im;'
'sleep 20;'
'rm -f $im'
], shell=True, stdin=f)
Expand Down

0 comments on commit 4fab8c7

Please sign in to comment.