WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Htop - two windows show up  (Read 1587 times)

Offline PDP-8

  • Hero Member
  • *****
  • Posts: 915
Htop - two windows show up
« on: February 16, 2021, 12:05:25 AM »
Huh, just installed HTOP from the repos for 11.1 and see two windows come up when activated from xwbar icon - one empty window and one window with htop in it.

Closing the empty window closes both itself AND the window with htop in it.

When htop is invoked from within an already existing aterm, htop acts normally and no extra empty window appears.

This is on a recent CorePlus 11.1 where I pulled down HTOP.

Not a big deal.
That's a UNIX book! - cool  -- Garth

Offline PDP-8

  • Hero Member
  • *****
  • Posts: 915
Re: Htop - two windows show up
« Reply #1 on: February 16, 2021, 02:44:05 AM »
Update: invoked within aterm, htop presents two windows - one for htop, and an empty one titled "cliorx"

When invoked with urxvt terminal, htop activates normally.

...interesting...
« Last Edit: February 16, 2021, 02:49:47 AM by PDP-8 »
That's a UNIX book! - cool  -- Garth

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11213
Re: Htop - two windows show up
« Reply #2 on: February 16, 2021, 06:39:30 AM »
Hi PDP-8
cliorx (commandline or X)  is a script used to launch certain applications that require a terminal when running under X.

As of TC10 it looks like this:
Code: [Select]
#Generic wrapper for hosting Terminal when called from X
[ "$DISPLAY" ] && /usr/local/bin/xterm -e "$@" || "$@"

Entering the command  htop  in a terminal should not result in  cliorx  being invoked. Maybe check the  .desktop  file?

In TC4, htop was launched from  ~/.wmx/Applications/Htop  like this:
Code: [Select]
exec aterm +tr +sb -T "Htop" -e htop

Offline PDP-8

  • Hero Member
  • *****
  • Posts: 915
Re: Htop - two windows show up
« Reply #3 on: February 16, 2021, 04:29:33 PM »
Ah, seems like that desktop file is it.

I'm running the latest 2.2.0 version from the repo (htop --version)

in ~/.wmx/Applications/Htop, the file looks like this:

Code: [Select]
exec aterm +tr +sb -T "htop" -e cliorx htop
So looks like that is where it is coming from.
That's a UNIX book! - cool  -- Garth