summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-08-03 13:47:15 +0100
committerPhil Jones <philj56@gmail.com>2022-08-03 13:47:15 +0100
commitc0d3df8af0328280836ccfef85ae7e40eb3b6b87 (patch)
treeb5e80a0dff429bc4dbe409e93d25ae8a023a13a3 /src/main.c
parent04731d5dd4172c94d7d33fb5fdc5dd2a74cfe754 (diff)
Make --drun-print-exec always be true.
The option is now deprecated, and a warning will be printed if it's used. It may be removed in a future version of tofi, so it should be removed from any configs now.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/main.c b/src/main.c
index c9f770b..be13a28 100644
--- a/src/main.c
+++ b/src/main.c
@@ -805,7 +805,8 @@ static void usage()
" --history <true|false> Sort results by number of usages.\n"
" --drun-launch <true|false> Launch apps directly in drun mode.\n"
" --drun-print-exec <true|false> Print a command line in drun mode.\n"
-" This will become the default in future.\n"
+" This is now always the case,\n"
+" and this option is deprecated.\n"
" --hint-font <true|false> Perform font hinting.\n"
" --late-keyboard-init (EXPERIMENTAL) Delay keyboard\n"
" initialisation until after the first\n"
@@ -954,16 +955,8 @@ static void do_submit(struct tofi *tofi)
}
if (tofi->drun_launch) {
drun_launch(res);
- } else if (tofi->drun_print_exec) {
- drun_print(res);
} else {
- log_warning("Using drun mode without --drun-print-exec=true is deprecated.\n"
- " In the next version of tofi, this will become the default behaviour,\n"
- " so fix your compositor configs now e.g. by replacing\n"
- " tofi-drun | xargs swaymsg exec gio launch\n"
- " with\n"
- " tofi-drun --drun-print-exec=true | xargs swaymsg exec --\n");
- printf("%s\n", res);
+ drun_print(res);
}
} else {
printf("%s\n", res);