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

Fix Desktop file error #7054

Closed

Conversation

apt-ghetto
Copy link

Validating the generated com.nextcloud.desktopclient.nextcloud.desktop file with desktop-file-validate shows the error

error: file contains group "org.freedesktop.CloudProviders", but
groups extending the format should start with "X-"

This commit fixes the error and the generated desktop file is following the freedesktop.org Desktop Entry Specification.

Fixes #7053

Validating the generated com.nextcloud.desktopclient.nextcloud.desktop
file with desktop-file-validate shows the error

  error: file contains group "org.freedesktop.CloudProviders", but
  groups extending the format should start with "X-"

This commit fixes the error and the generated desktop file is
following the freedesktop.org Desktop Entry Specification.

Fixes nextcloud#7053

Signed-off-by: apt-ghetto <[email protected]>
@apt-ghetto
Copy link
Author

I am not sure if this change is breaking stuff.

A git grep org.freedesktop.CloudProviders shows that the name is also used in shell_integration/libcloudproviders/CMakeLists.txt.

Please feel free to improve or reject this PR.

Copy link
Collaborator

@claucambra claucambra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@apt-ghetto
Copy link
Author

GNOME docs would disagree with this change: https://world.pages.gitlab.gnome.org/libcloudproviders/implementing-cp.html

Thank your for this hint. I will dig deeper.

@apt-ghetto
Copy link
Author

I opened https://gitlab.gnome.org/World/libcloudproviders/-/issues/25 because the name is used in the libcloudproviders source code.

@apt-ghetto
Copy link
Author

The validation fails because of a bug in desktop-file-utils itself and should be fixed with https://gitlab.freedesktop.org/xdg/desktop-file-utils/-/commit/0edb077899d696601d285c9891c8be61b8903634 but is not released yet. The error will disappear in "the future".

I guess I can click "Close with comment" and close this PR? Or what is the recommended Github way to handle this?

@apt-ghetto apt-ghetto closed this Sep 8, 2024
@apt-ghetto apt-ghetto deleted the desktop-file-validate-fix branch September 8, 2024 12:30
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

Successfully merging this pull request may close these issues.

[Bug]: Desktop file is not following the freedesktop.org Desktop Entry Specification
2 participants