X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3-dmenu-desktop;h=cf5b41e0f8f97d943aebc44e3ec6824d6d49de47;hb=7552a02d5ca5b46b985a89294126782b494e0ec0;hp=65e99ec09b13c663df6820dbcbf293c588bb463d;hpb=505d87ef3e44fb3cb6f7776ef986a29d4236a1e2;p=i3%2Fi3 diff --git a/i3-dmenu-desktop b/i3-dmenu-desktop index 65e99ec0..cf5b41e0 100755 --- a/i3-dmenu-desktop +++ b/i3-dmenu-desktop @@ -346,7 +346,13 @@ if (exists($choices{$choice})) { last; } if (!defined($app)) { - die "Invalid input: “$choice” does not match any application."; + warn "Invalid input: “$choice” does not match any application. Trying to execute nevertheless."; + $app->{Name} = ''; + $app->{Exec} = $choice; + # We assume that the app is old and does not support startup + # notifications because it doesn’t ship a desktop file. + $app->{StartupNotify} = 0; + $app->{_Location} = ''; } }