From 711226737a727cd29d5f7090b70ebf4132247c1b Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 3 Oct 2024 19:46:13 +0300 Subject: [PATCH] use vendor namespace --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index ee3d65b9..21d01987 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,11 +5,15 @@ use gtk::glib::{user_config_dir, ExitCode}; use sqlite::Connection; use std::{fs::create_dir_all, sync::Arc}; +const VENDOR: &str = "YGGverse"; +const APP_ID: &str = env!("CARGO_PKG_NAME"); + fn main() -> ExitCode { // Init profile path let mut profile_path = user_config_dir(); - profile_path.push(env!("CARGO_PKG_NAME")); + profile_path.push(VENDOR); + profile_path.push(APP_ID); if let Err(error) = create_dir_all(&profile_path) { panic!("Failed to create profile directory: {error}")