Skip to content

Commit

Permalink
Add desktop file for egui
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Saveau <[email protected]>
  • Loading branch information
SUPERCILEX committed Jul 25, 2024
1 parent f14180d commit 6164b1e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions egui/logo.jpeg
10 changes: 10 additions & 0 deletions egui/ringboard-egui.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=Ringboard
GenericName=Clipboard Manager
Exec=/bin/bash -c "PATH=~/.cargo/bin:\\$PATH ringboard-egui"
Icon=ringboard
StartupWMClass=ringboard-egui
8 changes: 3 additions & 5 deletions egui/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,9 @@ fn main() -> Result<(), eframe::Error> {
let ctx = cc.egui_ctx.clone();
move || {
ctx.send_viewport_cmd(ViewportCommand::Icon(Some(
eframe::icon_data::from_png_bytes(include_bytes!(
"../excited-clipboard.jpeg"
))
.unwrap()
.into(),
eframe::icon_data::from_png_bytes(include_bytes!("../logo.jpeg"))
.unwrap()
.into(),
)));
}
});
Expand Down
File renamed without changes

0 comments on commit 6164b1e

Please sign in to comment.