From 21cba44fd66d23592a51b78a36ee012479d4ee74 Mon Sep 17 00:00:00 2001 From: Yakkhini <59007159+Yakkhini@users.noreply.github.com> Date: Thu, 23 Jun 2022 13:39:45 +0800 Subject: [PATCH] Feat: Get icon img from usr share directory. --- assets/{screenshot-one.svg => icon.svg} | 0 src/tray.rs | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename assets/{screenshot-one.svg => icon.svg} (100%) diff --git a/assets/screenshot-one.svg b/assets/icon.svg similarity index 100% rename from assets/screenshot-one.svg rename to assets/icon.svg diff --git a/src/tray.rs b/src/tray.rs index 3209db9..8aadb69 100644 --- a/src/tray.rs +++ b/src/tray.rs @@ -23,9 +23,9 @@ pub fn build_tray() { let mut indicator = AppIndicator::new("libappindicator test application", ""); indicator.set_status(AppIndicatorStatus::Active); - let icon_path = Path::new(env!("CARGO_MANIFEST_DIR")).join("assets"); + let icon_path = Path::new("/usr/share/weye"); indicator.set_icon_theme_path(icon_path.to_str().unwrap()); - indicator.set_icon_full("screenshot-one", "icon"); + indicator.set_icon_full("icon", "icon"); let mut menu = gtk::Menu::new();