diff options
| author | salmonik <raisersoft@proton.me> | 2026-05-26 16:54:47 +0200 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2026-05-26 16:54:47 +0200 |
| commit | 337a0ec8a55692f44031b00391a48a7b4b8c71b6 (patch) | |
| tree | 00268fe1bf2a5b167c94f77462808a557b64a91b /src/database.rs | |
| parent | no need to ship completions anymore! (diff) | |
| download | rsplayer-337a0ec8a55692f44031b00391a48a7b4b8c71b6.tar.gz rsplayer-337a0ec8a55692f44031b00391a48a7b4b8c71b6.zip | |
add licensing
Diffstat (limited to 'src/database.rs')
| -rw-r--r-- | src/database.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/database.rs b/src/database.rs index b7b8e88..cd839b1 100644 --- a/src/database.rs +++ b/src/database.rs | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | /* | ||
| 2 | * This file is a part of RSPlayer | ||
| 3 | * Licensed under the GPL-3.0 License | ||
| 4 | * Copyright (C) 2026 Salmonik @ salmonik@tuta.io | ||
| 5 | * https://codeberg.org/salmonik/RSPlayer | ||
| 6 | */ | ||
| 7 | |||
| 1 | use directories::ProjectDirs; | 8 | use directories::ProjectDirs; |
| 2 | use rusqlite::{Connection, Result as SqlResult}; | 9 | use rusqlite::{Connection, Result as SqlResult}; |
| 3 | use std::fs; | 10 | use std::fs; |
| @@ -43,7 +50,7 @@ impl Database { | |||
| 43 | rusqlite::Error::InvalidPath("Failed to get project directories".into()) | 50 | rusqlite::Error::InvalidPath("Failed to get project directories".into()) |
| 44 | })?; | 51 | })?; |
| 45 | 52 | ||
| 46 | let data_dir = if let Ok(xdg) = std::env::var("XDG_CONFIG_HOME") { | 53 | let data_dir = if let Ok(xdg) = std::env::var("XDG_DATA_HOME") { |
| 47 | PathBuf::from(xdg).join("rsplayer") | 54 | PathBuf::from(xdg).join("rsplayer") |
| 48 | } else { | 55 | } else { |
| 49 | proj_dirs.data_dir().to_path_buf() | 56 | proj_dirs.data_dir().to_path_buf() |
