Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: PDP-8 on February 16, 2021, 03:05:25 AM

Title: Htop - two windows show up
Post by: PDP-8 on February 16, 2021, 03: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.
Title: Re: Htop - two windows show up
Post by: PDP-8 on February 16, 2021, 05: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...
Title: Re: Htop - two windows show up
Post by: Rich on February 16, 2021, 09: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
Title: Re: Htop - two windows show up
Post by: PDP-8 on February 16, 2021, 07: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.