On 7 Jun 2012, at 19:30, Dan Kegel wrote:
John asked
[ How do I launch Windows apps from Unix apps and pass filenames to them?] execl (the_path_to_wine, "wine", path_to_the_windows_program, command_line_parameter_for_windows_app, NULL);
Relative unix paths will often work with Windows apps, but in general, you will have to translate command_line_parameter_for_windows_app, and any paths that appear in data files, from Unix to Windows before launching the app.
Thanks Dan,
Paths in data files I can understand but from what Hin-Tak said earlier, it sounds like Wine itself will translate any paths that I pass as a command line parameter (or did I misunderstand that?)
FWIW the Windows app launches perfectly if I use execl() in the Linux app - and in fact, this has all worked perfectly for years. It was only yesterday that I began to wonder if there might be a problem in non-English locales. Up to now, nobody's ever reported a problem (though, as we all know in programming, that doesn't mean there isn't one!)
John