From 07952c6ebe125120b848e0e9d5de85644185d9a5 Mon Sep 17 00:00:00 2001
From: Terry Wilson <103469370+dkschruteBeets@users.noreply.github.com>
Date: Sun, 2 Mar 2025 16:55:19 -0700
Subject: feat: add profile picture support
---
src/slskd/Core/Options.cs | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
(limited to 'src/slskd/Core/Options.cs')
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 266d04aa..68856b36 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -1531,6 +1531,14 @@ namespace slskd
[Description("user description for the Soulseek network")]
public string Description { get; init; } = "A slskd user. https://github.com/slskd/slskd";
+ ///
+ /// Gets the file path for the user's profile picture.
+ ///
+ [Argument(default, "slsk-profile-picture")]
+ [EnvironmentVariable("SLSK_PROFILE_PICTURE")]
+ [Description("path to the user's profile picture file")]
+ public string ProfilePicture { get; init; } = Program.DefaultProfilePicturePath;
+
///
/// Gets the local IP address on which to listen for incoming connections.
///
@@ -1656,7 +1664,7 @@ namespace slskd
[EnvironmentVariable("SLSK_INACTIVITY_TIMEOUT")]
[Description("connection inactivity timeout, in milliseconds")]
[Range(1000, int.MaxValue)]
- public int Inactivity { get; init; } = 15000;
+ public int Inactivity { get; init; } = 30000;
}
///
--
cgit v1.2.3
From 01e41848bdf9e40930ea4b60f8f4f3fbe8ea4037 Mon Sep 17 00:00:00 2001
From: JP Dillingham
Date: Sat, 5 Apr 2025 17:11:39 -0500
Subject: set inactivity back to 15s
---
config/slskd.example.yml | 2 +-
src/slskd/Core/Options.cs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
(limited to 'src/slskd/Core/Options.cs')
diff --git a/config/slskd.example.yml b/config/slskd.example.yml
index 69725415..40ddcc5e 100644
--- a/config/slskd.example.yml
+++ b/config/slskd.example.yml
@@ -204,7 +204,7 @@
# connection:
# timeout:
# connect: 10000
-# inactivity: 30000
+# inactivity: 15000
# buffer:
# read: 16384
# write: 16384
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 68856b36..aeba446c 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -1664,7 +1664,7 @@ namespace slskd
[EnvironmentVariable("SLSK_INACTIVITY_TIMEOUT")]
[Description("connection inactivity timeout, in milliseconds")]
[Range(1000, int.MaxValue)]
- public int Inactivity { get; init; } = 30000;
+ public int Inactivity { get; init; } = 15000;
}
///
--
cgit v1.2.3
From 4b56b8eb282a9a32408b2b02c0e758f7bea23af2 Mon Sep 17 00:00:00 2001
From: JP Dillingham
Date: Sat, 5 Apr 2025 17:12:27 -0500
Subject: tweak picture option
---
src/slskd/Core/Options.cs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'src/slskd/Core/Options.cs')
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index aeba446c..22963eba 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -1534,10 +1534,10 @@ namespace slskd
///
/// Gets the file path for the user's profile picture.
///
- [Argument(default, "slsk-profile-picture")]
- [EnvironmentVariable("SLSK_PROFILE_PICTURE")]
- [Description("path to the user's profile picture file")]
- public string ProfilePicture { get; init; } = Program.DefaultProfilePicturePath;
+ [Argument(default, "slsk-picture")]
+ [EnvironmentVariable("SLSK_PICTURE")]
+ [Description("user picture for the Soulseek network")]
+ public string Picture { get; init; } = null;
///
/// Gets the local IP address on which to listen for incoming connections.
--
cgit v1.2.3
From 7f2cc8a2270340a17a46366e200fe832fd5137c1 Mon Sep 17 00:00:00 2001
From: JP Dillingham
Date: Sat, 5 Apr 2025 17:13:47 -0500
Subject: ensure file exists if specified
---
src/slskd/Core/Options.cs | 1 +
1 file changed, 1 insertion(+)
(limited to 'src/slskd/Core/Options.cs')
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 22963eba..cc662444 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -1537,6 +1537,7 @@ namespace slskd
[Argument(default, "slsk-picture")]
[EnvironmentVariable("SLSK_PICTURE")]
[Description("user picture for the Soulseek network")]
+ [FileExists(FileAccess.Read)]
public string Picture { get; init; } = null;
///
--
cgit v1.2.3