Table of Contents

Interface IAppDesktopPaths

Namespace
VpnHood.AppUi.Hosting.Desktop.Daemon.Platform
Assembly
VpnHood.AppUi.Hosting.Desktop.Daemon.dll

Defines where an install keeps things, as the commands need to know it: the window's share and the service's.

public interface IAppDesktopPaths : IDesktopUiPaths
Inherited Members

Remarks

Nothing here is a constant or a static: a command is handed the one for the machine it runs on.

Properties

CommandName

Gets the word a person types to run this again, which every hint prints, as vhclient; the binary's name where the install names none.

string CommandName { get; }

Property Value

string

DevStoragePath

Gets the app's storage where a debugger runs it in the person's own process (dev), which may not write the service's. The default is the UI's folder; a platform whose UI folder is a cache keeps it elsewhere.

string DevStoragePath { get; }

Property Value

string

IsStartedAsCommand

Gets a value indicating whether this process was started by that word rather than by the window's own executable, as a desktop entry runs it: run alone, the one prints its help and the other opens the window.

bool IsStartedAsCommand { get; }

Property Value

bool

KillSwitchOffScriptPath

Gets the installer's script that lifts the kill switch's block with neither the service nor the app, which the command line runs when the service is not running; or null outside an install.

string? KillSwitchOffScriptPath { get; }

Property Value

string

Exceptions

InvalidOperationException

The platform cannot name the install's folder.

StoragePath

Gets the service's storage: the settings, the profiles and the log, which only it and administrators may open.

string StoragePath { get; }

Property Value

string

Exceptions

InvalidOperationException

The platform cannot name the folder.