From d091babbc695f793c47eb0dbf4e042145170a59f Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Fri, 24 Oct 2025 11:10:06 -0400 Subject: [PATCH] other: add icon as part of .desktop file (#1839) --- CHANGELOG.md | 6 +++++- Cargo.toml | 6 ++++++ desktop/bottom.desktop | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a800dfe..482bf3fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,7 +20,7 @@ That said, these are more guidelines rather than hardset rules, though the proje --- -## \[0.11.3\]/\[0.12.0\] - Unreleased +## [0.11.3]/[0.12.0] - Unreleased ### Features @@ -31,6 +31,10 @@ That said, these are more guidelines rather than hardset rules, though the proje - [#1833](https://github.com/ClementTsang/bottom/pull/1833): Sort disk I/O using actual value rather than string representation. - [#1812](https://github.com/ClementTsang/bottom/pull/1812): Fix ARC collection on FreeBSD. +### Other + +- [#1838](https://github.com/ClementTsang/bottom/pull/1838): Add icon for application. + ## [0.11.2] - 2025-10-07 ### Features diff --git a/Cargo.toml b/Cargo.toml index 7812c3a8..a2c94fee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -205,6 +205,11 @@ assets = [ "usr/share/applications/bottom.desktop", "644", ], + [ + "assets/icon.svg", + "/usr/share/pixmaps/bottom.svg", + "644", + ], ] extended-description = """ @@ -231,6 +236,7 @@ assets = [ { source = "completion/btm.fish", dest = "/usr/share/fish/vendor_completions.d/btm.fish", mode = "644" }, { source = "completion/_btm", dest = "/usr/share/zsh/vendor-completions/", mode = "644" }, { source = "desktop/bottom.desktop", dest = "/usr/share/applications/bottom.desktop", mode = "644" }, + { source = "assets/icon.svg", dest = "/usr/share/pixmaps/bottom.svg", mode = "644" }, ] [lints.rust] diff --git a/desktop/bottom.desktop b/desktop/bottom.desktop index dbc3b9f7..aba84d95 100644 --- a/desktop/bottom.desktop +++ b/desktop/bottom.desktop @@ -8,3 +8,4 @@ Terminal=true Type=Application Categories=System;ConsoleOnly;Monitor; StartupNotify=false +Icon=bottom \ No newline at end of file