Bug 476897

Summary: The name org.kde.spectacle was not provided by any .service files
Product: [Applications] Spectacle Reporter: WeathrdKde <tpapata1386>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: RESOLVED NOT A BUG    
Severity: major CC: kde, nate, putr4.s
Priority: NOR Keywords: qt6
Version First Reported In: git-master   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description WeathrdKde 2023-11-12 21:06:33 UTC
SUMMARY:
If you try to launch spectacle via a shortcut or it's desktop application under Plasma 6, You'll get this error.


STEPS TO REPRODUCE
1. Latest git-master of plasma 6

OBSERVED RESULT
If you try to activate spectacle's service using `systemctl start --user app-org.kde.spectacle.service`, This issue would get fixed temporarily, but if you close spectacle, you'll have to run the command again for it to work.

EXPECTED RESULT
Spectacle should work out of the box with it's shortcuts working as intended without having to run `systemctl start --user app-org.kde.spectacle.service` each time I want to open it.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.5.9-zen2-1-zen
KDE Plasma Version:  6.0
Qt Version: 6.6.0-2
Comment 1 Prajna Sariputra 2023-11-13 00:06:14 UTC
It seems that Spectacle's D-Bus service name has changed from org.kde.Spectacle to org.kde.spectacle, with a difference in case.

This should not be a problem once Plasma 6 is properly released and packaged by distros, and for a dev setup you can either run the `~/kde/build/plasma-workspace/login-sessions/install-sessions.sh` script (if you've done this already it needs to be rerun if new D-Bus stuff is added) or copy the `~/kde/usr/share/dbus-1/services/org.kde.spectacle.service` file to the `~/.local/share/dbus-1/services` folder if you want to avoid messing with system files.
Comment 2 Nate Graham 2023-11-15 19:20:52 UTC
Excellent find, Prajna. You're absolutely right.