Piattaforme: istanza unica dopo lo spostamento dei dati, avvio sicuro del contenitore, rilascio con prove e immagine, accesso senza reindirizzamenti esterni (pkg-1, pkg-2, pkg-3, pkg-4, pkg-5, pkg-6, websec-2, web-8, websec-3)
Registro di casa 192.168.30.23:3000 (HTTP) nel modello Unraid, in compose e nel rilascio con buildx; profilo seccomp fuori da /dati. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
This commit is contained in:
36 files changed
+1683
-152
No files matched your search
@@ -12,9 +12,11 @@ namespace Febe.Desktop;
|
||||
/// «Mostra nella cartella» (<c>explorer.exe /select,"…"</c>), addresses in the default browser (shell execute), Windows
|
||||
/// notifications (balloon tips of the notification-area icon: the alerts of spec §13.3 arrive here through
|
||||
/// <see cref="NativeShellAlertChannel"/>, and «Invia una prova») and start with the computer
|
||||
/// (<c>HKCU\…\Run</c>, value <c>Febe</c>). Paths and addresses never come from the page: the web layer resolves them.
|
||||
/// (<c>HKCU\…\Run</c>, value <c>Febe</c>, or <c>Febe-…</c> with <c>--dati</c> for a Febe started on a Data folder of
|
||||
/// its own: <paramref name="fixedDataFolder"/>, see <see cref="Autostart"/>). Paths and addresses never come from the
|
||||
/// page: the web layer resolves them.
|
||||
/// </summary>
|
||||
internal sealed class WindowsShell(Dispatcher ui, Func<Window?> owner, Func<TrayIcon?> tray) : INativeShell
|
||||
internal sealed class WindowsShell(Dispatcher ui, Func<Window?> owner, Func<TrayIcon?> tray, string? fixedDataFolder) : INativeShell
|
||||
{
|
||||
public bool CanPickFolder => true;
|
||||
|
||||
@@ -85,8 +87,8 @@ internal sealed class WindowsShell(Dispatcher ui, Func<Window?> owner, Func<Tray
|
||||
public Task<bool> GetAutostartAsync(CancellationToken ct)
|
||||
{
|
||||
using var key = Registry.CurrentUser.OpenSubKey(Autostart.RunKey, writable: false);
|
||||
var value = key?.GetValue(Autostart.ValueName) as string;
|
||||
return Task.FromResult(Environment.ProcessPath is { } exe && Autostart.PointsTo(value, exe));
|
||||
var value = key?.GetValue(Autostart.ValueNameFor(fixedDataFolder)) as string;
|
||||
return Task.FromResult(Environment.ProcessPath is { } exe && Autostart.PointsTo(value, exe, fixedDataFolder));
|
||||
}
|
||||
|
||||
public Task SetAutostartAsync(bool enabled, CancellationToken ct)
|
||||
@@ -95,11 +97,11 @@ internal sealed class WindowsShell(Dispatcher ui, Func<Window?> owner, Func<Tray
|
||||
if (enabled)
|
||||
{
|
||||
var exe = Environment.ProcessPath ?? throw new InvalidOperationException("Percorso di Febe.exe sconosciuto.");
|
||||
key.SetValue(Autostart.ValueName, Autostart.Command(exe), RegistryValueKind.String);
|
||||
key.SetValue(Autostart.ValueNameFor(fixedDataFolder), Autostart.Command(exe, fixedDataFolder), RegistryValueKind.String);
|
||||
}
|
||||
else
|
||||
{
|
||||
key.DeleteValue(Autostart.ValueName, throwOnMissingValue: false);
|
||||
key.DeleteValue(Autostart.ValueNameFor(fixedDataFolder), throwOnMissingValue: false);
|
||||
}
|
||||
|
||||
return Task.CompletedTask;
|
||||
|
||||
Reference in new issue
Block a user