Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing required section [D-BUS Service] in service file #21

Open
regul4rj0hn opened this issue Dec 27, 2024 · 2 comments
Open

Missing required section [D-BUS Service] in service file #21

regul4rj0hn opened this issue Dec 27, 2024 · 2 comments

Comments

@regul4rj0hn
Copy link
Contributor

D-BUS broker reports:

dbus-broker-launch[3105]: Missing 'D-Bus Service' section in service file '/usr/share//dbus-1/services/hyprpolkitagent.service'
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.

Probably just a quick fix on https://github.com/hyprwm/hyprpolkitagent/blob/main/assets/hyprpolkitagent-service.in with:

[D-BUS Service]
Name=hyprpolkitagent
Exec=/usr/lib/hyprpolkitagent
@regul4rj0hn regul4rj0hn changed the title Missing required section [D-BUS Service] in service file. Missing required section [D-BUS Service] in service file Dec 27, 2024
@vaxerski
Copy link
Member

MRs welcome

@morialo3
Copy link

morialo3 commented Jan 13, 2025

D-bus and Systemd throwing the same error, from journal:

dbus-broker-launch[1315]: Invalid D-Bus name 'hyprpolkitagent' in service file '/usr/share/dbus-1/services/hyprpolkitagent.service'

Caused by the followingref.:

Bus names consist of a series of identifiers separated by dots, e.g. "com.acme.Foo" and the identifiers themselves may contain letters, digits, dashes, and underscores. The connection is said to own its bus names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants