Bug 490296 - kdesrc-build wont set DiscoverNotifier to be autostarted with development session
Summary: kdesrc-build wont set DiscoverNotifier to be autostarted with development ses...
Status: REPORTED
Alias: None
Product: kdesrc-build
Classification: Developer tools
Component: general (show other bugs)
Version: Git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Pyne
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-15 09:56 UTC by Akseli Lahtinen
Modified: 2024-07-15 11:12 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Akseli Lahtinen 2024-07-15 09:56:22 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
When Discover update system tray icon shows up and user clicks on it, the update view shows "Up to date"

When Discover is opened from desktop file instead, it shows the available System upgrades.

Flatpak application updates do show up though.

STEPS TO REPRODUCE
0. Need to have updates available, this can be done by downgrading one of the applications you have installed (i downgraded audacious with `sudo dnf downgrade audacious`). Then make sure Discover notices you have an update available.
1. Click discover status notifier icon to open discover, updates say theres nothing available
2. Close discover
3. Open it from anywhere else (desktop file, pinned discover app in task manager), it shows the available updates

OBSERVED RESULT
System upgrade field does not show up but only when Discover is opened from system tray

EXPECTED RESULT
System upgrade field would show up no matter where the app is opened

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.80
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.9.8-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
ADDITIONAL INFORMATION
Comment 1 Akseli Lahtinen 2024-07-15 10:31:07 UTC
This seems to be an issue with kdesrc-build not installing `DiscoverNotifier` to `kde/usr/libexec/`

So what happened actually was:

- Desktop file opens the `kde/usr/bin/plasma-discover` as expected, which shows the updates properly
- Systray notification is `/usr/libexec/DiscoverNotifier` that opens `/usr/bin/plasma-discover` which does not show updates properly
Comment 2 Nicolas Fella 2024-07-15 11:12:19 UTC
There's nothing wrong with how kdesrc-build installs it.

> -- Up-to-date: /home/nico/kde/usr/lib64/libexec/DiscoverNotifier
> -- Up-to-date: /home/nico/kde/usr/share/applications/org.kde.discover.notifier.desktop
> -- Up-to-date: /home/nico/kde/usr/etc/xdg/autostart/org.kde.discover.notifier.desktop

If autostart of things in ~/kde doesn't work correctly then the problem is somewhere else