WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: HTOP bringing up a child window?  (Read 1875 times)

Offline PDP-8

  • Hero Member
  • *****
  • Posts: 915
HTOP bringing up a child window?
« on: March 26, 2018, 09:43:44 PM »
Running CorePure64 9.0 and noticed something strange with the latest HTOP.

When run from the wbar icon, a blank background window appears underneath.  Stopping htop clears both windows. 

If htop is run manually from an already established aterm session, no such blank background window appears.

Keybinding: seems that the F4 key (Filter) will bring me into the setup, and F2 (setup) does nothing.  I know keybindings can be a touchy thing sometimes..

Anyone else see this or am I misconfigured somehow...
That's a UNIX book! - cool  -- Garth

Offline polikuo

  • Hero Member
  • *****
  • Posts: 724
Re: HTOP bringing up a child window?
« Reply #1 on: March 27, 2018, 10:07:31 PM »
Looks like something went wrong with /usr/local/tce.icons

Quote
i: /usr/local/share/pixmaps/htop.png
t: htop
c: exec aterm +tr +sb -T "htop" -e cliorx htop

It should be

Quote
i: /usr/local/share/pixmaps/htop.png
t: htop
c: exec cliorx htop

It comes from one of the wbar scripts. (/usr/local/bin/wbar_update.sh)

Quote
.....
  } else if ( $1 == "Terminal" ) {
    terminal = $2
  }
.....
.....
      if ( terminal == "true" ) {
   print "c: exec aterm +tr +sb -T \""name"\" -e " exec > output
      } else {
   print "c: exec " exec > output
      }

In /usr/local/share/applications/htop.desktop
Quote
Terminal=true
Exec=cliorx htop

The easy fix would be switching "Terminal=true" to "Terminal=false" in htop.desktop

However, I believe wbar_update.sh is the one that we should be dealing with.
I'm not exactly sure how to modify it though, perhaps more if/else to check for "cliorx".
:-\

Some what off topic:  ???
Sometimes I choose an unicode supported xterm rather than aterm.
Better replace "aterm" with "xterm" in "wbar_update.sh".
« Last Edit: March 27, 2018, 10:29:18 PM by polikuo »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: HTOP bringing up a child window?
« Reply #2 on: March 28, 2018, 02:02:15 AM »
htop (and lftp) updated - I thought the two windows were due to my aging fingers/mouse  :P