[Discuss] KDE, task bar grouping, X resources

Dale R. Worley Dale.Worley at comcast.net
Wed May 27 22:16:41 EDT 2026


> From: Rich Pieri <richard.pieri at gmail.com>
> [...]
> Very close. Firefox has a pair of options. For X11 it's --class=Foobar.
> For Wayland it's --name=Foobar. [...]

My impression is that X applications always have a command-line option
to set the resource class.  E.g. xterm's man page says

       -class string
               This option allows you to override xterm's resource class.
               Normally it is “XTerm”, but can be set to another class such as
               “UXTerm” to override selected resources.

               X Toolkit sets the WM_CLASS property using the instance name
               and this class value.

I assume it's so you can set various "profiles" for different resource
class names in .Xresources, so different executables of an application
can see different resource values.

Dale


More information about the Discuss mailing list