Bug 474614 - After few hours adding a new icon to the panels is not possible.
Summary: After few hours adding a new icon to the panels is not possible.
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: 5.27.4
Platform: Kubuntu Linux
: NOR major
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-17 13:25 UTC by Faryad
Modified: 2023-10-19 03:46 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
attachment-1034726-0.html (2.66 KB, text/html)
2023-09-19 10:29 UTC, Faryad
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Faryad 2023-09-17 13:25:20 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
After a while adding a new icon to panels is not possible. It is either not being added to the panel or if it does, it overlaps the first icon and cannot be selected or removed. Nothing can fix it other than changing this parameter:

home/username/.config/kdeglobals -> Allow Expansion=true (setting it to true fixed the problem for me after a log out).

Before finding this setting, I removed the whole kdeglobals and rebooted. It fixed the problem. Then I decided to find out the root cause and for me, changing that false to true fixed the problem and the panel started to function properly after a reboot. 

STEPS TO REPRODUCE
1. Create an empty top panel and add shortcuts, icons, spacer to it. I made the panel center and customized it a bit.
2. After a while, try to add more icons. 
3. Keep trying adding different shortcuts or icons. 

OBSERVED RESULT
Changing the parameter (or removing kdeglobals) fixed the problem. 

EXPECTED RESULT
Fix the bug!

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 23.04
(available in About System)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-09-18 19:51:59 UTC
> Allow Expansion=true
What does this setting do? Where did you find the advice to set it in your kdeglobals file?

Also can you clarify how you're adding icons to your panel? Is it by pinning them to the Task Manager, or are you actually creating standalone Icon widgets?
Comment 2 Faryad 2023-09-19 10:29:40 UTC
Created attachment 161715 [details]
attachment-1034726-0.html

Hi Nate,

No one told me what to do and I found the setting based on my experience.
I've been a system administrator for 15 years now. I read logs, compared
default files with my files, did A/B test etc.

I'm not sure what the setting does. Actually it is you (KDE) who should
tell me. :-) but it fixes the problem.

I create empty panels and drag and drop icons on them. But it doesn't make
any difference. When that bug happens, you can't add any icons to the
panels (including KDE's default panel). When you drag the icon to the
panel, nothing happens or on rare occasions the icon is being added to the
panel but overlaps another icon and it becomes very difficult to remove it.

I hope this is enough information.

Regards
Faryad

On Mon, Sep 18, 2023, 9:52 PM Nate Graham <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=474614
>
> Nate Graham <nate@kde.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>              Status|REPORTED                    |NEEDSINFO
>                  CC|                            |nate@kde.org
>          Resolution|---                         |WAITINGFORINFO
>
> --- Comment #1 from Nate Graham <nate@kde.org> ---
> > Allow Expansion=true
> What does this setting do? Where did you find the advice to set it in your
> kdeglobals file?
>
> Also can you clarify how you're adding icons to your panel? Is it by
> pinning
> them to the Task Manager, or are you actually creating standalone Icon
> widgets?
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
> You reported the bug.
Comment 3 Nate Graham 2023-09-19 15:53:34 UTC
Source code inspection says that the "Allow Expansion" key only affects KDirOperator instances, and only when placed within the "[View Style]" group. If you didn't set it in that group, then it's in fact having no effect at all. Even if you did, there is no logical connection between KDirOperator and the code for the panel, so any perceived connection between the two is going to end up having been coincidence, random chance due to cosmic rays or solar flares, etc.

So let's re-focus on how to reproduce the problem. Can you write up some specific and detailed steps to reproduce? Even the smallest detail helps; for example if you make your empty panel non-maximized, don't forget to mention that. If you add widgets to it, explain exactly how you do it, which widgets they are, and what order they're added.

Thanks!
Comment 4 Bug Janitor Service 2023-10-04 03:47:02 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2023-10-19 03:46:20 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!