aboutsummaryrefslogtreecommitdiffstats
path: root/src/dirs.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-02-10 01:07:05 -0500
committerJesse Luehrs <doy@tozt.net>2022-02-10 01:07:05 -0500
commit42badc1f3281961bbfadffffb64de913f5b6084f (patch)
treece4b9b789ce2bb27e353bf505e163b6436c1b453 /src/dirs.rs
parenteb13ab20bdbc46b291533eb81c04530d25804eca (diff)
downloadrbw-42badc1f3281961bbfadffffb64de913f5b6084f.tar.gz
rbw-42badc1f3281961bbfadffffb64de913f5b6084f.zip
move device_id to a separate data file
Diffstat (limited to 'src/dirs.rs')
-rw-r--r--src/dirs.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dirs.rs b/src/dirs.rs
index bc97ed5..5ebeaa2 100644
--- a/src/dirs.rs
+++ b/src/dirs.rs
@@ -68,6 +68,11 @@ pub fn agent_stderr_file() -> std::path::PathBuf {
}
#[must_use]
+pub fn device_id_file() -> std::path::PathBuf {
+ data_dir().join("device_id")
+}
+
+#[must_use]
pub fn socket_file() -> std::path::PathBuf {
runtime_dir().join("socket")
}