Added border padding back to image diff. Added alternate way of obtaining Xauthority file.

This commit is contained in:
Jared Goodwin 2019-04-16 11:19:11 -07:00
parent 0b20ccde12
commit 2b5152288d
7 changed files with 25 additions and 17 deletions

View File

@ -5,13 +5,13 @@
<TargetFramework>netcoreapp2.2</TargetFramework>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<Copyright>Copyright © 2019 Translucency Software</Copyright>
<Description>Background service that maintains a connection to the DoXM server. The service is used for remote support and maintenance by this computer's administrators.</Description>
<Description>Background service that maintains a connection to the Remotely server. The service is used for remote support and maintenance by this computer's administrators.</Description>
<PackageLicenseUrl>https://doxm.app/EULA</PackageLicenseUrl>
<Authors>Jared Goodwin</Authors>
<Product>DoXM Client</Product>
<Product>Remotely Agent</Product>
<Company>Translucency Software</Company>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<PackageProjectUrl>https://doxm.app</PackageProjectUrl>
<PackageProjectUrl>https://remotely.lucency.co</PackageProjectUrl>
<Platforms>AnyCPU;x86;x64</Platforms>
<AssemblyName>Remotely_Agent</AssemblyName>
<RootNamespace>Remotely_Agent</RootNamespace>

View File

@ -272,13 +272,14 @@ namespace Remotely_Agent.Services
{
var users = OSUtils.StartProcessWithResults("users", "");
var username = users?.Split()?.FirstOrDefault()?.Trim();
var homeDir = OSUtils.StartProcessWithResults("sudo", $"-u {username} env | grep HOME")?.Split('=')?.Last();
var psi = new ProcessStartInfo()
{
FileName = "sudo",
Arguments = $"-u {username} {rcBinaryPath} -mode Unattended -requester {requesterID} -serviceid {serviceID} -host {Utilities.GetConnectionInfo().Host} -desktop default & disown"
};
psi.Environment.Add("DISPLAY", ":0");
psi.Environment.Add("XAUTHORITY", $"/home/{username}/.Xauthority");
psi.Environment.Add("XAUTHORITY", $"{homeDir}/.Xauthority");
var casterProc = Process.Start(psi);
casterProc.WaitForExit();
}
@ -324,13 +325,14 @@ namespace Remotely_Agent.Services
{
var users = OSUtils.StartProcessWithResults("users", "");
var username = users?.Split()?.FirstOrDefault()?.Trim();
var homeDir = OSUtils.StartProcessWithResults("sudo", $"-u {username} env | grep HOME")?.Split('=')?.Last();
var psi = new ProcessStartInfo()
{
FileName = "sudo",
Arguments = $"-u {username} {rcBinaryPath} -mode Unattended -requester {requesterID} -serviceid {serviceID} -host {Utilities.GetConnectionInfo().Host} -relaunch true -desktop default -viewers {String.Join(",", viewerIDs)} & disown"
};
psi.Environment.Add("DISPLAY", ":0");
psi.Environment.Add("XAUTHORITY", $"/home/{username}/.Xauthority");
psi.Environment.Add("XAUTHORITY", $"{homeDir}/.Xauthority");
var casterProc = Process.Start(psi);
casterProc.WaitForExit();
}

View File

@ -7,12 +7,12 @@ using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Remotely_Desktop")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyTitle("Remotely Desktop")]
[assembly: AssemblyDescription("Desktop client for allowing remote control via the Remotely server.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Remotely_Desktop")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyCompany("Translucency Software")]
[assembly: AssemblyProduct("Remotely Desktop")]
[assembly: AssemblyCopyright("Copyright © 2019 Translucency Software")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View File

@ -99,7 +99,12 @@ namespace Remotely_ScreenCast.Core.Capture
if (left < right && top < bottom)
{
// Bounding box is valid
// Bounding box is valid. Padding is necessary to prevent artifacts from
// moving windows.
left = Math.Max(left - 10, 0);
top = Math.Max(top - 10, 0);
right = Math.Min(right + 10, width);
bottom = Math.Min(bottom + 10, height);
return new Rectangle(left, top, right - left, bottom - top);
}

View File

@ -3,6 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
<Description>Allows unattended remote control via the Remotely server.</Description>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

View File

@ -5,12 +5,12 @@ using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("RemoteControl")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyTitle("Remotely ScreenCast")]
[assembly: AssemblyDescription("Allows unattended remote control via the Remotely server.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("RemoteControl")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyCompany("Translucency Software")]
[assembly: AssemblyProduct("Remotely ScreenCast")]
[assembly: AssemblyCopyright("Copyright © 2019 Translucency Software")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

View File

@ -1 +1 @@
2019.04.12.0814
2019.04.16.1057