How Does CTKDeb handle StartupWMClass? #1
Replies: 1 comment 1 reply
|
CTkDeb does not need a special option for this; it can emit the standard desktop-entry key. The important part is to make the Tk window class and the desktop entry agree. Create the root window with an explicit import customtkinter as ctk
app = ctk.CTk(className="MyApp")CustomTkinter's current {
"desktopEntry": {
"Name": "My App",
"StartupWMClass": "MyApp"
}
}CTkDeb merges the values in StartupWMClass=MyAppAfter rebuilding and reinstalling the package, verify the real value rather than relying on the window title: xprop WM_CLASSClick the application window. The class (normally the second string) must match |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
In my desktop file, I am unable to figure out how to change the StartupWMClass value from "Tk". WM_INFO always returns "Tk" so every one of my apps has to be treated as being in the same app group internally, causing issues. I had a conversation about this with the CustomTkinter dev and he wasn't sure how to resolve it and pointed me here.
That conversation: TomSchimansky/CustomTkinter#2859 (comment)
Does anybody in this community know how to handle this case?
Thanks!
All reactions