mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
use vendor namespace
This commit is contained in:
parent
b6fa1016f6
commit
711226737a
1 changed files with 5 additions and 1 deletions
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue