Skip to content

Commit

Permalink
add some sort of generic command handling to menus
Browse files Browse the repository at this point in the history
  • Loading branch information
fdev31 committed Feb 8, 2024
1 parent 011234d commit 7ae44de
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pyprland/adapters/menus.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,11 @@ async def init(force_engine=False, extra_parameters="") -> MenuEngine:
for engine in engines:
if engine.is_available():
return engine(extra_parameters)

if force_engine:
# Attempt to use the user-supplied command
me = MenuEngine(extra_parameters)
me.proc_name = force_engine
return me

raise PyprError("No engine found")

0 comments on commit 7ae44de

Please sign in to comment.