- Fixed #6: os.getlogin() is not reliable on some platforms (thanks @dnalor for reporting the issue)
- Added
contrib/desktop.py
to generate application menu from*.desktop
files
- Fixed enabling/disabling handling input for nested menus
- Added support for rofi 1.6 (handle correctly ROFI_RETV, ROFI_INFO)
- Fix #3 (meta data for menu items was shown on the screen)
- Added
rofi_version
param to therun
function (it can be"1.5"
or"1.6"
-- default) - Added
debug
param to therun
function - Added option to disable accepting user input for menu (
allow_user_input
param) - Supported nonselectable items and searchable hidden text
By default, the code assumes rofi >= 1.6. If you run under 1.5, you need to pass rofi_version="1.5"
to the run
command explicitly.
Lots of backward incompatible changes (mostly introduced to fix issues raised here #2)
- added ability to store state during rofi session (e.g. to store previously selected menus); added
FileSession
(keeps the state in a~/.cache/rofi-menu/*.json
) - changed
def bind()
methods toasync def build()
- changed props of
meta
object (now it hasraw_script_input
,selected_id
anduser_input
props) - introduced new menu methods
propagate_select
andpropagate_user_input
- added "middlewares" mechanism to enrich "meta" object