mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-28 14:03:29 +01:00
Linux: Restore Nautilus fix that was mistakenly removed by Whirlpool optimization commit
This commit is contained in:
parent
723fcfa64d
commit
ea8e8e517e
@ -838,8 +838,10 @@ namespace VeraCrypt
|
|||||||
#else
|
#else
|
||||||
// MIME handler for directory seems to be unavailable through wxWidgets
|
// MIME handler for directory seems to be unavailable through wxWidgets
|
||||||
wxString desktop = GetTraits()->GetDesktopEnvironment();
|
wxString desktop = GetTraits()->GetDesktopEnvironment();
|
||||||
|
bool xdgOpenPresent = wxFileName::IsFileExecutable (wxT("/usr/bin/xdg-open"));
|
||||||
|
bool nautilusPresent = wxFileName::IsFileExecutable (wxT("/usr/bin/nautilus"));
|
||||||
|
|
||||||
if (desktop == L"GNOME")
|
if (desktop == L"GNOME" || (desktop.empty() && !xdgOpenPresent && nautilusPresent))
|
||||||
{
|
{
|
||||||
args.push_back ("--no-default-window");
|
args.push_back ("--no-default-window");
|
||||||
args.push_back ("--no-desktop");
|
args.push_back ("--no-desktop");
|
||||||
@ -872,7 +874,7 @@ namespace VeraCrypt
|
|||||||
catch (exception &e) { ShowError (e); }
|
catch (exception &e) { ShowError (e); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (wxFileName::IsFileExecutable (wxT("/usr/bin/xdg-open")))
|
else if (xdgOpenPresent)
|
||||||
{
|
{
|
||||||
// Fallback on the standard xdg-open command
|
// Fallback on the standard xdg-open command
|
||||||
// which is not always available by default
|
// which is not always available by default
|
||||||
|
Loading…
Reference in New Issue
Block a user