mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fixes bash permissions issue in Linux.
This commit is contained in:
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user