aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd')
-rw-r--r--src/slskd/Options.cs11
-rw-r--r--src/slskd/Program.cs2
-rw-r--r--src/slskd/Search/API/Hubs/SearchHub.cs4
-rw-r--r--src/slskd/slskd.csproj1
4 files changed, 13 insertions, 5 deletions
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs
index ba37f1b8..8ddc4c7f 100644
--- a/src/slskd/Options.cs
+++ b/src/slskd/Options.cs
@@ -210,6 +210,17 @@ namespace slskd
public string AppDirectory { get; init; } = Program.DefaultAppDirectory;
/// <summary>
+ /// Gets the path where application data is saved.
+ /// </summary>
+ [Argument('c', "config")]
+ [EnvironmentVariable("CONFIG")]
+ [Description("path to configuration file")]
+ [Obsolete("Used only for documentation; see Program for actual implementation")]
+ [JsonIgnore]
+ [YamlIgnore]
+ public string ConfigurationFile { get; init; } = Program.DefaultConfigurationFile;
+
+ /// <summary>
/// Gets directory options.
/// </summary>
[Validate]
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index f2511225..126cff4c 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -179,7 +179,7 @@ namespace slskd
// populate the properties above so that we can override the default config file if needed, and to
// check if the application is being run in command mode (run task and quit).
EnvironmentVariables.Populate(prefix: EnvironmentVariablePrefix);
- Arguments.Populate(clearExistingValues: true);
+ Arguments.Populate(clearExistingValues: false);
if (ShowVersion)
{
diff --git a/src/slskd/Search/API/Hubs/SearchHub.cs b/src/slskd/Search/API/Hubs/SearchHub.cs
index 1bb45574..86434669 100644
--- a/src/slskd/Search/API/Hubs/SearchHub.cs
+++ b/src/slskd/Search/API/Hubs/SearchHub.cs
@@ -75,9 +75,5 @@ namespace slskd.Search.API
private IStateMonitor<State> StateMonitor { get; }
private IOptionsMonitor<Options> OptionsMonitor { get; }
-
- public override async Task OnConnectedAsync()
- {
- }
}
} \ No newline at end of file
diff --git a/src/slskd/slskd.csproj b/src/slskd/slskd.csproj
index 34a9c2dc..904dfd0a 100644
--- a/src/slskd/slskd.csproj
+++ b/src/slskd/slskd.csproj
@@ -21,6 +21,7 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
+ <NoWarn>1591</NoWarn>
</PropertyGroup>
<ItemGroup>