initial skeleton

This commit is contained in:
stoorps 2026-03-19 18:46:50 +00:00
parent dc79fa2448
commit 71f89dde9c
Signed by: stoorps
SSH key fingerprint: SHA256:AZlPfu9hTu042EGtZElmDQoy+KvMOeShLDan/fYLoNI
60 changed files with 3480 additions and 0 deletions

View file

@ -0,0 +1,25 @@
use std::path::{Path, PathBuf};
pub fn user_managed_appimages_dir(home_dir: &Path) -> PathBuf {
home_dir.join(".local/lib/aim/appimages")
}
pub fn user_applications_dir(home_dir: &Path) -> PathBuf {
home_dir.join(".local/share/applications")
}
pub fn user_icons_dir(home_dir: &Path) -> PathBuf {
home_dir.join(".local/share/icons/hicolor/256x256/apps")
}
pub fn system_managed_appimages_dir() -> PathBuf {
PathBuf::from("/opt/aim/appimages")
}
pub fn system_applications_dir() -> PathBuf {
PathBuf::from("/usr/share/applications")
}
pub fn system_icons_dir() -> PathBuf {
PathBuf::from("/usr/share/icons/hicolor/256x256/apps")
}