Skip to content

Commit

Permalink
Feat: Get icon img from usr share directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakkhini committed Jun 23, 2022
1 parent 5d5f1d9 commit 21cba44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
File renamed without changes
4 changes: 2 additions & 2 deletions src/tray.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 21cba44

Please sign in to comment.