-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WM_CLASS is not set on Linux. #78
Comments
Hi😀 I added WM_CLASS at cd48c9f.
|
Thanks! I'll set up a development environment and give it a try. |
I finally got a build environment up (my laptop is slow) but my binary does not have a WM_CLASS. |
Umm, It's strange. |
Hi Akiyoshi! I ran the build almost like the wiki. I had to disable GO111MODULES to download the source.
Then I ran the rest of the steps as per the wiki.
As you can see, there is no WM_CLASS.
I looked at the change you made in the code. I saw that you simply set an environment variable |
Thank you for investigating. I don't know why this difference occurs. In my environment, Linux binaries were built using |
@akiyosi @DarkerMatter This diff fixes the problem for me: diff --git a/editor/editor.go b/editor/editor.go
index 1c7afe1..15053d7 100644
--- a/editor/editor.go
+++ b/editor/editor.go
@@ -156,7 +156,7 @@ func InitEditor() {
}
e := editor
- e.app = widgets.NewQApplication(0, nil)
+ e.app = widgets.NewQApplication(len(os.Args), os.Args)
e.app.ConnectAboutToQuit(func() {
e.cleanup()
}) See matplotlib/matplotlib#8394 (comment). |
Hi @smolck , that did the trick! Thank you :-) |
@smolck |
I have verified the committed version works for me. |
The Linux release does not set
WM_CLASS
and related information. Without it, an icon can't be set and the application shows up as "Unknown" when alt-tabbing in Gnome.The text was updated successfully, but these errors were encountered: