diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-06-03 12:21:28 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-06-03 12:21:28 +0200 |
| commit | 9d74393bf2f0d513a4e7675d4a936cb695e2fd2b (patch) | |
| tree | a4878a0339cdcda7699d715b8bb00996b6280d9d /src/tools | |
| parent | 816872f9ddf1251f29fe51594401ddd4f4d89c59 (diff) | |
Clean up handling of paths relative to the executable.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 3168197d5..cef7cf602 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -812,7 +812,7 @@ private: } /** @return false if we succeeded, true if not */ - bool send_to_other_tool (int port, function<void(boost::filesystem::path)> start, string message) + bool send_to_other_tool (int port, function<void()> start, string message) { /* i = 0; try to connect via socket i = 1; try again, and then try to start the tool @@ -838,7 +838,7 @@ private: } if (i == 1) { - start (wx_to_std (wxStandardPaths::Get().GetExecutablePath())); + start (); } dcpomatic_sleep_seconds (1); @@ -864,7 +864,7 @@ private: _film->write_metadata (); - if (send_to_other_tool (BATCH_JOB_PORT, bind (&start_batch_converter, _1), _film->directory()->string())) { + if (send_to_other_tool (BATCH_JOB_PORT, &start_batch_converter, _film->directory()->string())) { error_dialog (this, _("Could not find batch converter.")); } } @@ -875,7 +875,7 @@ private: return; } - if (send_to_other_tool (PLAYER_PLAY_PORT, bind (&start_player, _1), _film->dir(_film->dcp_name(false)).string())) { + if (send_to_other_tool (PLAYER_PLAY_PORT, &start_player, _film->dir(_film->dcp_name(false)).string())) { error_dialog (this, _("Could not find player.")); } } |
