Skip to content

Commit

Permalink
skip menu providers check when testing
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomos committed Mar 4, 2016
1 parent 9eda7ec commit 43fc741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/i3menu/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ def __init__(self, args=None):
self.config = self.parse_args(args)
self.i3 = I3Connector()
self.mp = self.get_menu_provider()
if not self.mp:
logger.info('No menu provider found. Testing?')

def parse_args(self, params=None):
config = DEFAULTS
Expand Down Expand Up @@ -103,8 +105,6 @@ def get_menu_provider(self):
cmd = which('rofi')
elif which('dmenu'):
cmd = which('dmenu')
else:
raise Exception('Either dmenu or rofi commands are required')
return cmd

def _display_menu(self, menu, prompt=None, filter_fnc=None):
Expand Down

0 comments on commit 43fc741

Please sign in to comment.