WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: wbar duplicate icon  (Read 2364 times)

Offline thane

  • Hero Member
  • *****
  • Posts: 688
wbar duplicate icon
« on: February 19, 2021, 12:00:39 PM »
In x86 64 bit TC (versions 11.1 and 12.0) the icon for evince.tcz is duplicated in wbar after reboot. That is, after downloading and installing evince.tcz a single evince icon appears in wbar, but upon reboot the icon appears twice. Subsequent reboots have the same two icons. This happens on my desktop and laptop.

Maybe this is an evince problem and not a wbar one? Both icons work!

Thane

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: wbar duplicate icon
« Reply #1 on: February 19, 2021, 12:07:00 PM »
Hi thane
Maybe the same type of problem as mentioned here:
http://forum.tinycorelinux.net/index.php/topic,23933.msg150766.html#msg150766

Offline thane

  • Hero Member
  • *****
  • Posts: 688
Re: wbar duplicate icon
« Reply #2 on: February 19, 2021, 01:00:41 PM »
Hi Rich, it looks like the evince.desktop file has 3 icon references; the other apps I checked only have 1 each. So that could be what it is. I have a 32-bit 11.1 system I can look at. Thanks.

Offline thane

  • Hero Member
  • *****
  • Posts: 688
Re: wbar duplicate icon
« Reply #3 on: February 19, 2021, 01:31:43 PM »
The 32-bit 11.1 evince.desktop file only has 1 icon reference. Not sure why the code would be different for 64-bit, thought it was just a recompile? Maybe repos have different evince versions? Anyway, not something I want to mess with. I can live with dup icons!

Thane

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: wbar duplicate icon
« Reply #4 on: February 19, 2021, 01:34:46 PM »
Hi thane
... Click on the  ControlPanel  icon. Then click the  tcWbarConf  button. In the panel that says
Wbar Icons  click on the name you don't want displayed and it wiil get moved to the  eXclude Icons  panel. Then click  Apply.


Offline thane

  • Hero Member
  • *****
  • Posts: 688
Re: wbar duplicate icon
« Reply #5 on: February 19, 2021, 04:42:41 PM »
Oops, I should have said, I did exclude one of the icons when the duplicates popped up the first time. That worked during the session, but then on subsequent boots no evince icon appeared in wbar.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: wbar duplicate icon
« Reply #6 on: February 19, 2021, 11:19:37 PM »
Hi thane
The problem is that gnome-session requires a desktop file of the form org.gnome.gedit.desktop and wbar will not display a desktop file of this form if the X gui is already started (it is not a problem in wayland).

If the extension is loaded from the console and the X gui started, then two icons appear.
If you remove  evince  from your onboot.lst file and create a file in your  ~/.X.d  directory containing this line:
Code: [Select]
tce-load -i evincedoes it still create 2 icons?

Offline thane

  • Hero Member
  • *****
  • Posts: 688
Re: wbar duplicate icon
« Reply #7 on: February 20, 2021, 10:43:48 PM »
Hi Rich, I removed evince from onboot.lst and created a file named "evince" in ~/X.d containing the command "tce-load -i evince.tcz" (no quotes).

This results in a single evince icon appearing in wbar, which works. There's a short lag between wbar appearing and the icon showing.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: wbar duplicate icon
« Reply #8 on: February 21, 2021, 07:43:08 AM »
Hi thane
... There's a short lag between wbar appearing and the icon showing.
That's to be expected, since the loading of evince is being deferred until after the GUI is up and running.

Out of curiosity, if you refresh the wbar by  right clicking  on it, is there still only 1 icon for evince or does a second
one show up?

Offline thane

  • Hero Member
  • *****
  • Posts: 688
Re: wbar duplicate icon
« Reply #9 on: February 21, 2021, 08:26:22 PM »
Hi Rich,

Still only one Evince icon after right-clicking on wbar.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: wbar duplicate icon
« Reply #10 on: February 21, 2021, 08:38:43 PM »
Hi thane
Thanks for checking that.

Offline thane

  • Hero Member
  • *****
  • Posts: 688
Re: wbar duplicate icon
« Reply #11 on: February 22, 2021, 12:37:12 PM »
This workaround is ok for me, I usually only boot once a day so waiting a couple seconds for an icon won't kill me. Thanks for the help!

Thane