Re: How to prevent CLI command from using GUI
mtr on my Ubuntu 18.04 doesn't open any windows, and in fact the -g and --gtk options don't work. Did you install a different version of mtr, or GTK+? Or a different desktop manager? You said Ubuntu, not Kubuntu or Xubuntu or Lubuntu, so I'm assuming the normal gnome 3.
ssh shouldn't open any windows either if you're using the command line tools. Maybe you're running a ssh agent that has a GUI?
The command unset DISPLAY will cause the shell in that terminal to "forget" you're in a GUI environment and prevent anything launched from that shell from accessing the GUI display as well.
Last edited by kpatz; June 18th, 2019 at 03:25 PM.
Current 'buntu systems: multiple systems running Server or Desktop 22.04 LTS / Retired or Upgraded: 18.04.2 LTS, Mythbuntu 16.04 LTS, Ubuntu 16.04.1 LTS, 14.04 LTS, 10.04 LTS, 8.04 LTS
Been using ubuntu since 6.04 (16 years!)
Bookmarks