Bug 483856

Summary: Service file '/usr/share//dbus-1/services/org.kde.kscreen.service' is not named after the D-Bus name 'org.kde.KScreen'.
Product: [Plasma] KScreen Reporter: Ivan Stankovic <istankovic>
Component: commonAssignee: kscreen-bugs-null <kscreen-bugs-null>
Status: REPORTED ---    
Severity: minor CC: nate, nikolakocicbz, sitter
Priority: NOR Keywords: qt6
Version First Reported In: 6.0.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ivan Stankovic 2024-03-17 18:36:24 UTC
SUMMARY
I get the following warning:

Subject: Invalid service file                                               
Defined-By: dbus-broker                                                     
Support: https://groups.google.com/forum/#!forum/bus1-devel                 
                                                                            
A service file is a ini-type configuration file.                            
                                                                            
It has one required section                                                 
named [D-BUS Service]. The section contains the required key 'Name', which  
must be a valid D-Bus name that is unique across all service files. It also 
contains at least one of the two optional keys 'SystemdService' and 'Exec', 
as well as optionally the key 'User'. Exec must be a valid shell command and
User must be a valid user on the system.                                    
                                                                            
A service file should be named after the D-Bus name it configures. That is  
a file containing Name=org.foo.bar1 should be named org.foo.bar1.service.   
For backwards compatibility, we only warn when files do not follow this     
convention when run as a user bus. The system bus considers this an error   
and ignores the service file.                                               
dbus-broker-launch[1141]: Service file '/usr/share//dbus-1/services/org.kde.kscreen.service' is not named after the D-Bus name 'org.kde.KScreen'.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.8.1-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 1 Nate Graham 2024-04-10 18:49:58 UTC
I guess it's case-sensitive?
Comment 2 Ivan Stankovic 2024-04-11 12:36:08 UTC
Yes, I think that's the case (heh) here: https://github.com/bus1/dbus-broker/blob/0cdc6e08154ea4d9321c17451de85d416ba5c127/src/launch/launcher.c#L635

There are others though where it's not about the case:

Service file '/usr/share//dbus-1/services/org.kde.dolphin.FileManager1.service' is not named after the D-Bus name 'org.freedesktop.FileManager1'.
Service file '/usr/share//dbus-1/services/org.kde.plasma.Notifications.service' is not named after the D-Bus name 'org.freedesktop.Notifications'.