diff --git a/src/PIL/ImageShow.py b/src/PIL/ImageShow.py index bbd841db77c..db5c0ecfe24 100644 --- a/src/PIL/ImageShow.py +++ b/src/PIL/ImageShow.py @@ -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 @@ -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)