Fixes bash permissions issue in Linux.

This commit is contained in:
BDisp
2021-05-25 19:09:33 +01:00
parent 87271cc477
commit 286461e7c8

View File

@@ -1074,11 +1074,16 @@ namespace Terminal.Gui {
bool CheckSupport ()
{
var result = BashRunner.Run ("which xclip");
if (string.IsNullOrEmpty (result) || result.Contains ("not found")) {
try {
var result = BashRunner.Run ("which xclip");
if (string.IsNullOrEmpty (result) || result.Contains ("not found")) {
return false;
}
return true;
} catch (Exception) {
// Permissions issue.
return false;
}
return true;
}
protected override string GetClipboardDataImpl ()