From 371b9c904aef37863aa57e2e848915df9ba9da9b Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 23 Apr 2017 14:18:48 +0200 Subject: FreeBSD 11 build and use compatibility --- src/Main/UserInterface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Main/UserInterface.cpp') diff --git a/src/Main/UserInterface.cpp b/src/Main/UserInterface.cpp index fa2088f1..c79cef2b 100644 --- a/src/Main/UserInterface.cpp +++ b/src/Main/UserInterface.cpp @@ -838,12 +838,12 @@ namespace VeraCrypt #else // MIME handler for directory seems to be unavailable through wxWidgets wxString desktop = GetTraits()->GetDesktopEnvironment(); - bool xdgOpenPresent = wxFileName::IsFileExecutable (wxT("/usr/bin/xdg-open")); - bool nautilusPresent = wxFileName::IsFileExecutable (wxT("/usr/bin/nautilus")); + bool xdgOpenPresent = wxFileName::IsFileExecutable (wxT("/usr/bin/xdg-open")) || wxFileName::IsFileExecutable (wxT("/usr/local/bin/xdg-open")); + bool nautilusPresent = wxFileName::IsFileExecutable (wxT("/usr/bin/nautilus")) || wxFileName::IsFileExecutable (wxT("/usr/local/bin/nautilus")); if (desktop == L"GNOME" || (desktop.empty() && !xdgOpenPresent && nautilusPresent)) { - args.push_back ("--no-default-window"); + // args.push_back ("--no-default-window"); // This option causes nautilus not to launch under FreeBSD 11 args.push_back ("--no-desktop"); args.push_back (string (path)); try -- cgit v1.2.3