-
Notifications
You must be signed in to change notification settings - Fork 37
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
Using --class on the command line doesn't work in Wayland #55
Comments
Following up, I just tried copying the binary for 1.0.1 from an Ubuntu 20.04 system, and it seems to have the same new behavior. So maybe nothing changed on the app side. Maybe it's the GTK libraries? I'm a bit confused! |
I browsed the original gtkterm source and source from the Ubuntu repository. |
Yeah, --class is a pass-through GTK option. Any GTK app will let you use that option, and I guess it's passed down via the application object. I looked into this a bit more, and realized that I was using the Wayland desktop, not X.org. Restarting the desktop with X.org, and the classes work as expected. You can see this by running the looking glass inspector ( Some notable other GTK apps that do support this under Wayland are No idea how this could be addressed, but maybe there's some call that could be done at the application level? For now, I'll run under X.org. |
I've been using Ubuntu 20.04 (using gtkterm 1.0.1) for my work machine for a while. I have a few ".desktop" files set up, so with a single click I could launch gtkterm with a few different profiles from disctinct dock icons. For example:
By launching with the --class option and matching with the "StartupWMClass" in the desktop file, the dock launcher would only have one instance of that profile at a time, which is perfect for resources like serial ports.
I recently updated to Ubuntu 22.04 (running 1.1.1). I set up the same files and unfortunately the --class option doesn't seem to work now, so that the GUI shows a new app running in the dock.
I tested some other gtk applications (such as gparted) and using "--class still works.
Any thoughts on why this might have changed?
The text was updated successfully, but these errors were encountered: