Commit 45a4c84e authored by Luke Faraone's avatar Luke Faraone Committed by Thibault Saunier
Browse files

Use instead of os.system() when opening an image

parent ce17d598
......@@ -21,6 +21,7 @@
# Boston, MA 02110-1301, USA.
import os
import subprocess
from time import time
from urllib.parse import unquote
......@@ -546,7 +547,7 @@ class PitiviMainWindow(Gtk.ApplicationWindow, Loggable):
# to do a better job (sizing, zooming, metadata, editing, etc.)
# than the user's favorite image viewer.
if asset.is_image():
os.system('xdg-open "%s"' % path_from_uri(asset.get_id()))['xdg-open', str(path_from_uri(asset.get_id()))])
preview_window = PreviewAssetWindow(asset, self)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment