- Fixed #6: os.getlogin() is not reliable on some platforms (thanks @dnalor for reporting the issue)
- Added
contrib/desktop.pyto generate application menu from*.desktopfiles
- 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_versionparam to therunfunction (it can be"1.5"or"1.6"-- default) - Added
debugparam to therunfunction - Added option to disable accepting user input for menu (
allow_user_inputparam) - 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
metaobject (now it hasraw_script_input,selected_idanduser_inputprops) - introduced new menu methods
propagate_selectandpropagate_user_input - added "middlewares" mechanism to enrich "meta" object