Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
pitivi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
201
Issues
201
List
Boards
Labels
Service Desk
Milestones
Merge Requests
30
Merge Requests
30
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
pitivi
Commits
45a4c84e
Commit
45a4c84e
authored
Sep 13, 2015
by
Luke Faraone
Committed by
Thibault Saunier
Oct 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use subprocess.call() instead of os.system() when opening an image
parent
ce17d598
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
pitivi/mainwindow.py
pitivi/mainwindow.py
+2
-1
No files found.
pitivi/mainwindow.py
View file @
45a4c84e
...
...
@@ -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
())
)
subprocess
.
call
([
'xdg-open'
,
str
(
path_from_uri
(
asset
.
get_id
()))]
)
else
:
preview_window
=
PreviewAssetWindow
(
asset
,
self
)
preview_window
.
preview
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment