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

data: Add ‘Endless’ to the list of desktops #522

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

pwithnall
Copy link
Contributor

It’s used to identify Endless OS desktops, which use a modified version of GNOME.

It’s always used alongside GNOME (i.e. DesktopNames=endless:GNOME), but is useful as a separate identifier to allow distinguishing between modified Endless OS desktops and stock GNOME.

It’s defined in /usr/share/wayland-sessions/endless-wayland.desktop on Endless OS systems. That file is provided by the gnome-session package whose Debian packaging data is modified during packaging. (i.e. There’s no git repository I can point you to which defines the endless desktop ID.)

Defining the desktop allows metainfo files which specify, for example, <compulsory_for_desktop>endless</compulsory_for_desktop> to pass validation.

@pwithnall
Copy link
Contributor Author

I’ve also proposed it here for the XDG menu spec.

@ximion
Copy link
Owner

ximion commented Sep 7, 2023

I’ve also proposed it here for the XDG menu spec.

I was about to ask that wile reading the original description 😆
The non-capitalized spelling is intentional, right? (this value will be case-sensitive)

pwithnall added a commit to endlessm/endless-key-flatpak that referenced this pull request Sep 7, 2023
appstream-util comes from libappstream-glib, which is outdated and
unmaintained. appstreamcli is the more modern replacement, and it comes
from libappstream.

It implements more up to date validation rules, in particular it has
raised the maximum length of screenshot captions from 50 characters to a
more manageable 100 characters.

The downside is that it more strictly validates
`<compulsory_for_desktop>`, and rejects ‘endless’ because it’s not
officially registered as a desktop ID. Work around that for now by
temporarily removing that element from the XML during validation. In the
long term, we need to register the ID:
ximion/appstream#522.

Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
@pwithnall
Copy link
Contributor Author

The non-capitalized spelling is intentional, right? (this value will be case-sensitive)

Yes, it is intentional, as endless is what we use already in various bits of software. See https://gitlab.freedesktop.org/xdg/xdg-specs/-/merge_requests/73#note_2075562.

I’ve just asked internally, however, about whether we should consider changing the capitalisation now (before it’s standardised) to neaten things up. Please hold!

pwithnall added a commit to endlessm/endless-key-flatpak that referenced this pull request Sep 7, 2023
appstream-util comes from libappstream-glib, which is outdated and
unmaintained. appstreamcli is the more modern replacement, and it comes
from libappstream.

It implements more up to date validation rules, in particular it has
raised the maximum length of screenshot captions from 50 characters to a
more manageable 100 characters.

The downside is that it more strictly validates
`<compulsory_for_desktop>`, and rejects ‘endless’ because it’s not
officially registered as a desktop ID. Work around that for now by
temporarily removing that element from the XML during validation. In the
long term, we need to register the ID:
ximion/appstream#522.

Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>

Fixes: #34
@ximion
Copy link
Owner

ximion commented Sep 7, 2023

Please hold!

Okay, just tell me when it's ready :-) This patch is otherwise fine obviously, so I can merge it as soon as you're fine with it :-)

@ximion
Copy link
Owner

ximion commented Sep 7, 2023

But it could probably happen if the lowercase version is too unpalatable for the spec.

FTR, it's fine with me, it's just that this is the only entry that doesn't start with a capital letter, so it looks a bit like a mistake in the list ^^
But if it's intentional, spec-wise I see no issue (as long as we don't change it once it has been in a release).

@dbnicholson
Copy link

Please hold!

Okay, just tell me when it's ready :-) This patch is otherwise fine obviously, so I can merge it as soon as you're fine with it :-)

We're switching it to capitalized Endless, so I think we'll want to change the patch.

It’s used to identify Endless OS desktops, which use a modified version
of GNOME.

It’s always used alongside GNOME (i.e. `DesktopNames=Endless:GNOME`),
but is useful as a separate identifier to allow distinguishing between
modified Endless OS desktops and stock GNOME.

It’s defined in `/usr/share/wayland-sessions/endless-wayland.desktop` on
Endless OS systems. That file is provided by the `gnome-session` package
whose Debian packaging data is modified during packaging. (i.e. There’s
no git repository I can point you to which defines the `Endless` desktop
ID.)

Defining the desktop allows metainfo files which specify, for example,
`<compulsory_for_desktop>Endless</compulsory_for_desktop>` to pass
validation.

Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
@pwithnall pwithnall changed the title data: Add ‘endless’ to the list of desktops data: Add ‘Endless’ to the list of desktops Sep 12, 2023
@pwithnall
Copy link
Contributor Author

I’ve updated the patch to use the new capitalisation. From my point of view it’s ready to merge. Thanks!

@ximion ximion merged commit c64e697 into ximion:main Sep 12, 2023
9 checks passed
@ximion
Copy link
Owner

ximion commented Sep 12, 2023

Nice, I have no objections :-)
Thanks for the patch!

jollaitbot pushed a commit to sailfishos-mirror/desktop-file-utils that referenced this pull request Sep 13, 2023
@pwithnall pwithnall deleted the endless-desktop branch February 13, 2024 11:22
dylanmccall pushed a commit to learningequality/kolibri-installer-gnome that referenced this pull request Apr 24, 2024
appstream-util comes from libappstream-glib, which is outdated and
unmaintained. appstreamcli is the more modern replacement, and it comes
from libappstream.

It implements more up to date validation rules, in particular it has
raised the maximum length of screenshot captions from 50 characters to a
more manageable 100 characters.

The downside is that it more strictly validates
`<compulsory_for_desktop>`, and rejects ‘endless’ because it’s not
officially registered as a desktop ID. Work around that for now by
temporarily removing that element from the XML during validation. In the
long term, we need to register the ID:
ximion/appstream#522.

Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>

Fixes: endlessm/endless-key-flatpak#34
dylanmccall pushed a commit to learningequality/kolibri-installer-gnome that referenced this pull request May 4, 2024
appstream-util comes from libappstream-glib, which is outdated and
unmaintained. appstreamcli is the more modern replacement, and it comes
from libappstream.

It implements more up to date validation rules, in particular it has
raised the maximum length of screenshot captions from 50 characters to a
more manageable 100 characters.

The downside is that it more strictly validates
`<compulsory_for_desktop>`, and rejects ‘endless’ because it’s not
officially registered as a desktop ID. Work around that for now by
temporarily removing that element from the XML during validation. In the
long term, we need to register the ID:
ximion/appstream#522.

Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>

Fixes: endlessm/endless-key-flatpak#34
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.

None yet

3 participants