Ubuntu – Custom keyboard shortcut for terminal command `htop` not working

command linehtoprebootshortcut-keyssystem-monitor

On Ubuntu 18.04 I can setup custom keyboard shortcuts to run terminal commands via:

Settings > Devices > Keyboard > +

Name: htop keyboard shortcut
Command: htop
ShortCut: Ctrl+Super+Delete

This usually works without issue when I've created shortcuts for other terminal commands, other than htop. When I try and issue the htop to Ctrl+Super+Delete it just doesn't work.

I press Ctrl+Super+Delete and the htop system monitor doesn't initiate on my system. What's wrong? All the other keyboard shortcuts I've created in this manner are working fine.

Best Answer

WorkAround

use the command gnome-terminal -- htop instead of htop

Verified on Ubuntu 18.04

enter image description here