Bug 466285 - Click the notification popup button doesn't work
Summary: Click the notification popup button doesn't work
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-23 03:04 UTC by zyf0330
Modified: 2023-05-19 06:51 UTC (History)
4 users (show)

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


Attachments
demo (29.68 KB, video/mp4)
2023-02-23 03:04 UTC, zyf0330
Details
demo (1.53 MB, video/mp4)
2023-02-24 03:07 UTC, zyf0330
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zyf0330 2023-02-23 03:04:45 UTC
Created attachment 156629 [details]
demo

SUMMARY 
The KdeConnect app displays a popup box for Android app notifications, but it does not respond when the button in the popup is clicked.


STEPS TO REPRODUCE
1. there is a notification from KDEConnect
2. click button

OBSERVED RESULT
Nothing happened.

EXPECTED RESULT
The action related to button is executed, and notification popup diesappears.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 22.10
KDE Plasma Version: 5.25.5
KDE Frameworks Version:  5.98.0
Qt Version: 5.15.6

ADDITIONAL INFORMATION
Comment 1 zyf0330 2023-02-23 03:07:04 UTC
related to https://bugs.kde.org/show_bug.cgi?id=444243
Comment 2 zyf0330 2023-02-24 03:07:51 UTC
Created attachment 156663 [details]
demo

I don't think this problem is related to kdeconnect, at least part of.
Please see my attachment video.
I use `notify-send` to show a notification with a button. When I click button, notify-send should exit and print button, but it doesn't. And when I click notification, it blinks and hide.

This problem doesn't exist when I boot into Ubuntu. But after some time, it occurs. I don't know what happened.
Comment 3 zyf0330 2023-02-28 02:08:04 UTC
I don't know if it is true. It seems that after execute `kwin --replace` this problem appears.
Comment 4 zyf0330 2023-02-28 03:05:49 UTC
I see this error info when execute `notify-send alert -A button=button` after execute `plasmashell --replace`

```
Could not find the Plasmoid for Plasma::FrameSvgItem(0x5568590eb530) QQmlContext(0x556857a54ef0) QUrl("file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml")
```

This file is exist.
Comment 5 zyf0330 2023-05-06 09:38:09 UTC
After first boot into system, this problem doesn't exists.
And after execute `plasmashell --replace`, this problem appears.
This is log after execute `plasmashell --replace`

```
Omitting both --window and --windowclass arguments is not recommended
Checking screens: available: (QScreen(0x55cd4857a9a0, name="HDMI-A-0"), QScreen(0x55cd4857aa90, name="eDP")) redundant: QHash() fake: QSet() all: (QScreen(0x55cd4857a9a0, name="HDMI-A-0"), QScreen(0x55cd4857aa90, name="eDP"))
QObject::connect: No such slot DesktopProtocol::_k_slotRedirection(KIO::Job *, QUrl)
qt.gui.icc: fromIccProfile: failed minimal tag size sanity
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:534:9: QML Label: Binding loop detected for property "height"
file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:499:13: QML Label: Binding loop detected for property "height"
Using KRun from QML is deprecated (since 5.88). Use Qt.openUrlExternally, or the KIO::OpenUrlJob/KIO::ApplicationLauncherJob classes from C++ instead.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Cyclic dependency detected between "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml" and "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/ThumbnailStrip.qml"
Cyclic dependency detected between "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/global/Globals.qml" and "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/NotificationHeader.qml"
file:///usr/share/plasma/plasmoids/org.kde.plasma.networkmanagement/contents/ui/main.qml:95: TypeError: Cannot read property 'airplaneModeAvailable' of null
QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
Both point size and pixel size set. Using pixel size.
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/plasma/extras/PlaceholderMessage.qml:238:5: QML Heading: Binding loop detected for property "verticalAlignment"
```
Comment 6 zyf0330 2023-05-19 06:51:12 UTC
I don't know what is updated or changed, but this problem has gone.