Skip to content

Commit

Permalink
Merge pull request #619 from immense/jaredg-617-fix-linux-desktop-client
Browse files Browse the repository at this point in the history
Fix linux desktop client.
  • Loading branch information
bitbound committed Apr 17, 2023
2 parents 57e3d52 + 5add343 commit b1cc1d1
Show file tree
Hide file tree
Showing 10 changed files with 106 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -293,3 +293,5 @@ Server/.config/dotnet-tools.json
Server.Installer/Properties/launchSettings.json
.DS_Store
/Server/wwwroot/Content/Linux-x64/Remotely_Desktop
!/.vscode/launch.json
!/.vscode/tasks.json
24 changes: 24 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Linux Desktop",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/Desktop.Linux/bin/Debug/net6.0/Remotely_Desktop.dll",
"args": [],
"cwd": "${workspaceFolder}/Desktop.Linux",
"console": "internalConsole",
"stopAtEntry": false
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
}
]
}
41 changes: 41 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/Desktop.Linux/Desktop.Linux.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/Desktop.Linux/Desktop.Linux.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"--project",
"${workspaceFolder}/Desktop.Linux/Desktop.Linux.csproj"
],
"problemMatcher": "$msCompile"
}
]
}
8 changes: 4 additions & 4 deletions Desktop.Linux/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Threading.Tasks;
using System.Threading;
using System;
using Immense.RemoteControl.Desktop.Windows;
using Immense.RemoteControl.Desktop.Linux;
using Remotely.Desktop.Shared.Services;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
Expand All @@ -14,9 +14,9 @@
using Remotely.Shared;
using System.Diagnostics;

var logger = new FileLogger("Remotely_Deskt", "Program.cs");
var logger = new FileLogger("Remotely_Desktop", "Program.cs");
var filePath = Process.GetCurrentProcess()?.MainModule?.FileName;
var serverUrl = Debugger.IsAttached ? "https://localhost:5001" : string.Empty;
var serverUrl = Debugger.IsAttached ? "http://localhost:5000" : string.Empty;
var getEmbeddedResult = await EmbeddedServerDataSearcher.Instance.TryGetEmbeddedData(filePath);
if (getEmbeddedResult.IsSuccess)
{
Expand All @@ -40,7 +40,7 @@
#if DEBUG
builder.SetMinimumLevel(LogLevel.Debug);
#endif
builder.AddProvider(new FileLoggerProvider("Remotely_Deskt"));
builder.AddProvider(new FileLoggerProvider("Remotely_Desktop"));
});
services.AddSingleton<IOrganizationIdProvider, OrganizationIdProvider>();
Expand Down
5 changes: 4 additions & 1 deletion Desktop.Win/Desktop.Win.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
<Platforms>AnyCPU;x86;x64</Platforms>
<StartupObject></StartupObject>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Release'">
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ You can change database by changing `DBProvider` in `ApplicationOptions` to `SQL
* libx11-dev
* libxrandr-dev
* libc6-dev
* libgdiplus
* libxtst-dev
* xclip

Expand Down
30 changes: 30 additions & 0 deletions Server/appsettings.Development.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,35 @@
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"ApplicationOptions": {
"AllowApiLogin": false,
"BannedDevices": [],
"DataRetentionInDays": 90,
"DBProvider": "SQLite",
"EnableWindowsEventLog": false,
"EnforceAttendedAccess": false,
"ForceClientHttps": false,
"KnownProxies": [],
"MaxConcurrentUpdates": 10,
"MaxOrganizationCount": 1,
"MessageOfTheDay": "",
"RedirectToHttps": true,
"RemoteControlNotifyUser": true,
"RemoteControlRequiresAuthentication": false,
"RemoteControlSessionLimit": 3,
"Require2FA": false,
"SmtpDisplayName": "",
"SmtpEmail": "",
"SmtpHost": "",
"SmtpLocalDomain": "",
"SmtpCheckCertificateRevocation": true,
"SmtpPassword": "",
"SmtpPort": 587,
"SmtpUserName": "",
"Theme": "Dark",
"TrustedCorsOrigins": [],
"UseHsts": false,
"UseHttpLogging": false
}
}
3 changes: 0 additions & 3 deletions Server/wwwroot/Content/Install-MacOS-arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ su - $Owner -c "brew update"
# Install .NET Runtime
su - $Owner -c "brew install --cask dotnet"

# Install dependency for System.Drawing.Common
su - $Owner -c "brew install mono-libgdiplus"

# Install other dependencies
su - $Owner -c "brew install curl"
su - $Owner -c "brew install jq"
Expand Down
3 changes: 0 additions & 3 deletions Server/wwwroot/Content/Install-MacOS-x64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ su - $Owner -c "brew update"
# Install .NET Runtime
su - $Owner -c "brew install --cask dotnet"

# Install dependency for System.Drawing.Common
su - $Owner -c "brew install mono-libgdiplus"

# Install other dependencies
su - $Owner -c "brew install curl"
su - $Owner -c "brew install jq"
Expand Down

0 comments on commit b1cc1d1

Please sign in to comment.