aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2026-06-20 16:13:13 +0000
committerDaniel Eklöf <daniel@ekloef.se>2026-06-20 16:13:13 +0000
commit73e6d21000460cba7b511d984d34112f512a7f29 (patch)
treec783f5d5f4e7c1823387f7ded9a06077a1a2627e /main.c
parentwayland: win_destroy(): unmap overlay surface before destroy (diff)
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
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 9db77d0c..d9c5dc3c 100644
--- a/main.c
+++ b/main.c
@@ -216,6 +216,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},
{"login-shell", no_argument, NULL, 'L'},
{"working-directory", required_argument, NULL, 'D'},