Compare commits

..
3 Commits
Author SHA1 Message Date
BlueKenny ff65b45453 add support for multiple image directorys 2026-11-23 12:41:13 +01:00
BlueKenny 8fc9efba9a change version number 2026-11-23 12:40:59 +01:00
BlueKenny 62ca70ddd7 add Tested On text... 2026-11-23 12:40:46 +01:00
3 changed files with 15 additions and 12 deletions

No files matched your search

+1 -2
View File
@@ -1,8 +1,7 @@
[package]
name = "rustix-dash"
version = "0.1.1"
version = "0.1.2"
edition = "2024"
[dependencies]
freedesktop-desktop-entry = "0.8.4"
iced = { version = "0.14.0", features = ["image", "svg"] }
+5 -2
View File
@@ -4,7 +4,10 @@ this is the Dash / App Drawer for the rustix desktop environment.
Its light and runs without systemd or other init system.
We Designed it to run on any POSIX OS:
Tested on FreeBSD
## Tested on:
- FreeBSD
- Debian
- Alpine/Nura
# Compile
# Compile:
cargo build --release
+9 -8
View File
@@ -89,16 +89,17 @@ fn view(data: &Data) -> Element<'_, Message> {
fn app_element(app: &rustix_lib::ApplicationEntry) -> Element<'_, Message> {
//$HOME/.icons (for backwards compatibility), in $XDG_DATA_DIRS/icons and in /usr/share/pixmaps (in that order).
let absolute_icon_path = format!("/usr/share/icons/hicolor/scalable/apps/{}.svg", app.icon.clone());
/*
if std::path::Path::new(&absolute_icon_path).is_file() {} else {
absolute_icon_path = format!("$XDG_DATA_DIRS/.icons/{}", app.icon.clone());
if std::path::Path::new(&absolute_icon_path).is_file() {} else {
absolute_icon_path = format!("/usr/share/pixmaps/{}", app.icon.clone());
let mut absolute_icon_path = "".to_string();
let dirs = [
format!("/usr/local/share/icons/hicolor/scalable/apps/{}.svg", app.icon.clone()),
format!("/usr/share/icons/hicolor/scalable/apps/{}.svg", app.icon.clone()),
];
for dir in dirs {
if std::path::Path::new(&dir).is_file() {
absolute_icon_path = dir;
break
}
}
*/
button(
column![
text(app.name.clone())