Fixes, sort group instances

This commit is contained in:
Natsumi
2025-01-14 00:58:20 +13:00
parent 5221b9d8c1
commit 885ead4edf
7 changed files with 103 additions and 42 deletions

View File

@@ -83,7 +83,29 @@ namespace VRCX
public override string GetClipboard()
{
return string.Empty;
var process = new Process
{
StartInfo = new ProcessStartInfo
{
FileName = "xclip",
Arguments = "-o",
UseShellExecute = false,
RedirectStandardOutput = true,
CreateNoWindow = true
}
};
try
{
process.Start();
var output = process.StandardOutput.ReadToEnd();
process.WaitForExit();
return output;
}
catch (Exception ex)
{
logger.Error($"Failed to get clipboard: {ex.Message}");
return string.Empty;
}
}
public override void SetStartup(bool enabled)