diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-18 18:58:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-18 18:58:49 +0100 |
| commit | 308cf01bf7ba51af4b09a06d8483c78a1eecb7f6 (patch) | |
| tree | 4a18545b38917c2853ce3251c60d0a1aa88fcf32 /src/tools | |
| parent | 0b1f3a5dc3069726e61670b1aa35e62ba96ed198 (diff) | |
Fix a few warnings.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic.cc | 10 |
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 |
