Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff65b45453 | ||
|
|
8fc9efba9a | ||
|
|
62ca70ddd7 |
No files matched your search
+1
-2
@@ -1,8 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rustix-dash"
|
name = "rustix-dash"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
freedesktop-desktop-entry = "0.8.4"
|
freedesktop-desktop-entry = "0.8.4"
|
||||||
iced = { version = "0.14.0", features = ["image", "svg"] }
|
iced = { version = "0.14.0", features = ["image", "svg"] }
|
||||||
|
|||||||
@@ -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.
|
Its light and runs without systemd or other init system.
|
||||||
|
|
||||||
We Designed it to run on any POSIX OS:
|
We Designed it to run on any POSIX OS:
|
||||||
Tested on FreeBSD
|
## Tested on:
|
||||||
|
- FreeBSD
|
||||||
|
- Debian
|
||||||
|
- Alpine/Nura
|
||||||
|
|
||||||
# Compile
|
# Compile:
|
||||||
cargo build --release
|
cargo build --release
|
||||||
+9
-8
@@ -89,16 +89,17 @@ fn view(data: &Data) -> Element<'_, Message> {
|
|||||||
|
|
||||||
fn app_element(app: &rustix_lib::ApplicationEntry) -> 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).
|
//$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());
|
let mut absolute_icon_path = "".to_string();
|
||||||
/*
|
let dirs = [
|
||||||
if std::path::Path::new(&absolute_icon_path).is_file() {} else {
|
format!("/usr/local/share/icons/hicolor/scalable/apps/{}.svg", app.icon.clone()),
|
||||||
absolute_icon_path = format!("$XDG_DATA_DIRS/.icons/{}", app.icon.clone());
|
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!("/usr/share/pixmaps/{}", app.icon.clone());
|
for dir in dirs {
|
||||||
|
if std::path::Path::new(&dir).is_file() {
|
||||||
|
absolute_icon_path = dir;
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
button(
|
button(
|
||||||
column![
|
column![
|
||||||
text(app.name.clone())
|
text(app.name.clone())
|
||||||
|
|||||||
Reference in new issue
Block a user