Using drun-print_command=true with a desktop file action will now print a warning to stderr while printing the main action's commandline

This commit is contained in:
Scoopta 2020-02-25 18:59:16 -08:00
parent e0db258ad6
commit ab974be7ef

View File

@ -348,6 +348,7 @@ void wofi_drun_exec(const gchar* cmd) {
char* action = space + 1; char* action = space + 1;
if(print_command) { if(print_command) {
printf("%s\n", g_app_info_get_commandline(G_APP_INFO(info))); printf("%s\n", g_app_info_get_commandline(G_APP_INFO(info)));
fprintf(stderr, "Printing the command line for an action is not supported\n");
} else { } else {
g_desktop_app_info_launch_action(info, action, NULL); g_desktop_app_info_launch_action(info, action, NULL);
utils_sleep_millis(500); utils_sleep_millis(500);