Bug 423345 - System tray doesn't show hidden icons by default
Summary: System tray doesn't show hidden icons by default
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Tray widget (show other bugs)
Version: 5.19.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Konrad Materka
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2020-06-22 05:54 UTC by joey.joey586
Modified: 2020-07-16 08:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
video showing the bug (2.86 MB, video/x-matroska)
2020-06-22 07:01 UTC, joey.joey586
Details
capslock and plasmoidviewer commands (3.63 MB, video/x-matroska)
2020-06-23 12:34 UTC, joey.joey586
Details
Patched ExpanderArrow v1 (4.83 KB, text/x-qml)
2020-06-29 18:23 UTC, Konrad Materka
Details
removing Discover (79.49 KB, image/png)
2020-07-16 08:51 UTC, joey.joey586
Details

Note You need to log in before you can comment on or make changes to this bug.
Description joey.joey586 2020-06-22 05:54:49 UTC
SUMMARY
For some reason the button indicating the hidden icons are not shown until something triggers it, such as plugging in a thumb drive. This might be a problem for users looking to enable options hidden by default, such as Bluetooth.

STEPS TO REPRODUCE
1. Log out of user then log back in
2. Notice that the "show hidden icons" button is not shown initially
3. Plug in a thumb drive to trigger device notifier, then the hidden icons button will appear

OBSERVED RESULT


EXPECTED RESULT
The hidden icons button should always be available by default like the previous Plasma 5.18

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.19.1
KDE Frameworks Version: 5.71.0
Qt Version: 5.15.0
Kernel Version: 5.7.4-zen1-1-zen
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-7200U CPU @ 2.50GHz
Memory: 11.5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 620

ADDITIONAL INFORMATION
Comment 1 joey.joey586 2020-06-22 07:01:31 UTC
Created attachment 129575 [details]
video showing the bug

The "show hidden icons" button isn't shown until an action triggers it
Comment 2 Nate Graham 2020-06-22 15:52:04 UTC
Thanks for the video, that's super helpful. Cannot reproduce on my system though. Konrad, any ideas?
Comment 3 Konrad Materka 2020-06-22 17:46:17 UTC
I even installed Arch in VirtualBox but can't reproduce it neither.

Something must be wrong with `hiddenTasks.itemCount` in `HiddenItemsView.qml`. It should update on all model changes, but for some reason it is not updated during Plasma start, only later when new item is added.

@Joey
Can you run:
plasmoidviewer --applet org.kde.plasma.systemtray
Is the "show hidden icons" button visible?

Does the button appear if you change Caps Lock state?
Comment 4 joey.joey586 2020-06-23 12:34:19 UTC
Created attachment 129601 [details]
capslock and plasmoidviewer commands

@Konrad
Yup, both seems to make the "show hidden icons" button appear again
Comment 5 Konrad Materka 2020-06-23 13:04:24 UTC
Just to be sure - is this a clean install or you have some addons installed (like Latte Dock)?

I will work on this next week.
Comment 6 joey.joey586 2020-06-23 14:10:45 UTC
clean install
Comment 7 Konrad Materka 2020-06-29 18:23:02 UTC
Created attachment 129773 [details]
Patched ExpanderArrow v1

I cannot reproduce on my computer and I need your help with testing. Can you replace: 
/usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/ExpanderArrow.qml
with the attached file and test check again?
Comment 8 joey.joey586 2020-06-29 21:53:26 UTC
@Konrad
Still doesnt work. Weird...
Comment 9 joey.joey586 2020-06-29 21:57:21 UTC
i created a backup of the original .qml file, replaced it with yours then rebooted. still happens.
i even downloaded it twice and compared the sha256sums to make sure its not corrupted and they match

$ sha256sum ExpanderArrow.qml
4b6b353c7934b36dd457495841696605a6def3efba3e8a360c17d20d99528d12  ExpanderArrow.qml
Comment 10 joey.joey586 2020-06-30 21:53:22 UTC
Ok, so I decided to do another fresh Arch Linux Plasma install and it worked; the "show hidden icons" button wasn't hidden anymore. (Technically it still happens but only when logging in to a newly created user; logging out and logging back in doesn't cause the button to disappear anymore) 

Umm...so I have a confession to make: that "fresh Arch Plasma" install with the hidden icons bug was a fresh install of Arch I made around 6 months ago. So I made a fresh install using the Arch Live ISO then compressed it to an .sfs file as a backup in case I ever broke my Arch system and needed a quick restore.

Recently I updated that backup and the bug started occurring. I'm not really sure what happened; most likely something broke during the upgrade process that caused this bug.
Comment 11 David Edmundson 2020-07-07 08:54:37 UTC
Ok, then there's not too much we can work on. Thanks for reporting back, and keep us updated if there's any news
Comment 12 joey.joey586 2020-07-16 08:31:39 UTC
I think i figured out why the systray button didn't show
when i removed Discover (the app store) the button didn't show. Reinstalling it made the button show again
Comment 13 joey.joey586 2020-07-16 08:51:45 UTC
Created attachment 130164 [details]
removing Discover
Comment 14 joey.joey586 2020-07-16 08:57:17 UTC
Odd thing is that this didnt happen back when my Arch system was still on Plasma 5.18.4. Only when i upgraded to Plasma 5.19 it started happening.
Comment 15 joey.joey586 2020-07-16 08:59:24 UTC
back on Plasma 5.18 i did not have Discover installed