MarkHedleyJones / dmenu-extended

An extension to dmenu for quickly opening files and folders.
MIT License
389 stars 33 forks source link

Hide settings menu #60

Open rk9qn3j opened 6 years ago

rk9qn3j commented 6 years ago

Can -> Settings be hidden from the menu?

MarkHedleyJones commented 6 years ago

Hi, Removing the Settings plugin would mean that users could then lock themselves out of being able to control the menu's settings (if they didn't know where to find the configuration file). Because of that, I'd be hesitant to adding that as a feature. However, if you open dmenu_extended.py and modify the line (728) from:

cache_plugins = self.cache_open(file_cache_plugins)

to

cache_plugins = ""

then the menu won't display any plugins when opened.

Note that to see the change you'll have to run the script in place python dmenu_extended.py (from within the dmenu-extended directory), or install the modified package on your system again (for a global installation that's sudo python setup.py install).

I hope that helps.

rk9qn3j commented 6 years ago

Yes, the Settings item disappears from the menu, just the way I like it. I think this should be configurable to at least give the user the option to disable the item from being displayed without altering the code.