summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-19 11:41:47 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-19 11:41:47 +0100
commit91273da19c689e44f3baa368d4b4efbe75cd8fe5 (patch)
treeb38e643c9de71b16168128a7f2f00ccb75009605 /src/tools
parentd6b125826e28c0633137d667371defc33f95f648 (diff)
parentba17803f7e33be2bea1363b5a7115e4713dd5997 (diff)
Merge branch '1.0' of /home/carl/git/dvdomatic into 1.0
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/dcpomatic.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc
index f016cf3e4..afde7e6c5 100644
--- a/src/tools/dcpomatic.cc
+++ b/src/tools/dcpomatic.cc
@@ -394,11 +394,17 @@ private:
#else
int r = system ("which nautilus");
if (WEXITSTATUS (r) == 0) {
- system (string ("nautilus " + film->directory()).c_str ());
+ r = system (string ("nautilus " + film->directory()).c_str ());
+ if (WEXITSTATUS (r)) {
+ error_dialog (this, _("Could not show DCP (could not run nautilus)"));
+ }
} else {
int r = system ("which konqueror");
if (WEXITSTATUS (r) == 0) {
- system (string ("konqueror " + film->directory()).c_str ());
+ r = system (string ("konqueror " + film->directory()).c_str ());
+ if (WEXITSTATUS (r)) {
+ error_dialog (this, _("Could not show DCP (could not run konqueror)"));
+ }
}
}
#endif