You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The winit crate allows setting the class (X11) and app-id (wayland) using the window builder with_name method:
/// Build window with the given `general` and `instance` names.////// On Wayland, the `general` name sets an application ID, which should match the `.desktop`/// file destributed with your program. The `instance` is a `no-op`.////// On X11, the `general` sets general class of `WM_CLASS(STRING)`, while `instance` set the/// instance part of it. The resulted property looks like `WM_CLASS(STRING) = "general", "instance"`.////// For details about application ID conventions, see the/// [Desktop Entry Spec](https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#desktop-file-id)fnwith_name(self,general:implInto<String>,instance:implInto<String>) -> Self;
This doesn't seem to be possible with eframe - the NativeOptions struct does not expose this functionality.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The
winit
crate allows setting theclass
(X11) andapp-id
(wayland) using the window builderwith_name
method:This doesn't seem to be possible with
eframe
- theNativeOptions
struct does not expose this functionality.Is there any other way to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions