damus-io / notedeck

A multiplatform nostr client
Other
47 stars 9 forks source link

[FR] Set window app_id / class #74

Open hellodword opened 1 month ago

hellodword commented 1 month ago

Currently notedeck doesn't contain them:

$ swaymsg -t get_tree
    #24: workspace "3"
      #26: con "(null)"
        #25: con "cargo run" (xdg_shell, pid: 74593, app_id: "kitty")
        #40: con "Damus NoteDeck" (xdg_shell, pid: 102851)
jb55 commented 1 month ago

chatgpt says:

use winit::platform::unix::WindowBuilderExtUnix;
use winit::event_loop::EventLoop;
use winit::window::WindowBuilder;

fn main() {
    let event_loop = EventLoop::new();
    let window = WindowBuilder::new()
        .with_title("Damus NoteDeck")
        .with_app_id("notedeck") // Set your app_id here
        .build(&event_loop)
        .unwrap();

    // Your egui code here
}
hellodword commented 1 month ago

Actually I tested the with_app_id before filing this issue, but not working.

I'll try to find the way with the egui examples.