From 73e6d21000460cba7b511d984d34112f512a7f29 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 20 Jun 2026 18:13:13 +0200 Subject: main/client: add --class, an alias for --app-id This is to help e.g. scripts that wants to launch terminal instances in a terminal agnostic way. Many terminals were originally for X11, where the '--class' choice was obvious. When they were ported to Wayland, it made sense for them to keep the '--class' command line option, but have it set the application ID instead (since "class" is not a thing on Wayland). Let's add the alias, but minimally documented. We don't want to _encourage_ its use after all. Closes #2368 --- client.c | 1 + 1 file changed, 1 insertion(+) (limited to 'client.c') diff --git a/client.c b/client.c index befd3ab0..f35453b9 100644 --- a/client.c +++ b/client.c @@ -157,6 +157,7 @@ main(int argc, char *const *argv) {"term", required_argument, NULL, 't'}, {"title", required_argument, NULL, 'T'}, {"app-id", required_argument, NULL, 'a'}, + {"class", required_argument, NULL, 'a'}, {"toplevel-tag", required_argument, NULL, TOPLEVEL_TAG_OPTION}, {"window-size-pixels", required_argument, NULL, 'w'}, {"window-size-chars", required_argument, NULL, 'W'}, -- cgit v1.3