The full path to ssh.exe and mosh.exe was being stored in SSH profiles. The path to mosh.exe includes FluentTerminal's version number causing SSH profiles to break after an upgrade. Instead, a token indicating SSH or Mosh is stored in the profile instead. This is resolved just before the shell is started. This change also meant that the infrastructure for the "GetMoshSshExecutable" system tray request is no longer required, so this has been removed.
33 lines
1003 B
C#
33 lines
1003 B
C#
using FluentTerminal.Models;
|
|
using FluentTerminal.Models.Enums;
|
|
using FluentTerminal.Models.Responses;
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FluentTerminal.App.Services
|
|
{
|
|
public interface ITrayProcessCommunicationService
|
|
{
|
|
event EventHandler<TerminalExitStatus> TerminalExited;
|
|
|
|
void Initialize(IAppServiceConnection appServiceConnection);
|
|
|
|
Task<CreateTerminalResponse> CreateTerminal(byte id, TerminalSize size, ShellProfile shellProfile, SessionType sessionType);
|
|
|
|
Task ResizeTerminal(byte id, TerminalSize size);
|
|
|
|
Task UpdateToggleWindowKeyBindings();
|
|
|
|
Task Write(byte terminalId, byte[] data);
|
|
|
|
void SubscribeForTerminalOutput(byte terminalId, Action<byte[]> callback);
|
|
|
|
Task CloseTerminal(byte terminalId);
|
|
Task<GetAvailablePortResponse> GetAvailablePort();
|
|
byte GetNextTerminalId();
|
|
|
|
Task<string> GetUserName();
|
|
|
|
Task SaveTextFileAsync(string path, string content);
|
|
}
|
|
} |