recently used pipemenu fix
parent
1c22f1605e
commit
4a7265b7f6
|
@ -29,9 +29,11 @@ maximum_entries=15 # max. number of entries in menu
|
|||
case $LANG in
|
||||
pl*)
|
||||
NOTFOUND="Nie znaleziono pliku recently-used.xbel"
|
||||
CLEAR="Wyczyść ostatnio używane"
|
||||
;;
|
||||
*)
|
||||
NOTFOUND="Cannot find a readable recently-used.xbel file"
|
||||
CLEAR="Clear recently used file list"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
@ -48,7 +50,7 @@ then
|
|||
else
|
||||
echo "$0: cannot find a readable recently-used.xbel file" >&2
|
||||
echo '<openbox_pipe_menu>
|
||||
<separator label="$NOTFOUND" />
|
||||
<separator label="'$NOTFOUND'" />
|
||||
</openbox_pipe_menu>'
|
||||
exit 1
|
||||
fi
|
||||
|
@ -104,7 +106,7 @@ files=$(perl -MURI::Escape -e 'print uri_unescape($ARGV[0]);' "$files")
|
|||
output='<openbox_pipe_menu>
|
||||
'"$files"'
|
||||
<separator />
|
||||
<item label="Wyczyść ostatnio używane">
|
||||
<item label="'${CLEAR}'">
|
||||
<action name="Execute">
|
||||
<command>
|
||||
''"$0"'' --clear
|
||||
|
|
Loading…
Reference in New Issue