Skip to content

Commit

Permalink
2018-04-11-making-a-cockpit-application.md: Update cockpit metainfo
Browse files Browse the repository at this point in the history
At some point, cockpit changed the application id and this page linked from
documentation includes an outdated example. If used, this results in AppStream
metadata for the app being dropped as they don't belong to any app.
  • Loading branch information
CtrlZmaster authored Feb 2, 2024
1 parent 5fd6dd5 commit ea7bab7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _posts/2018-04-11-making-a-cockpit-application.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ page.
For a Cockpit component, the AppStream data looks like this:
```xml
<component type="addon">
<id>org.cockpit-project.demo-app</id>
<id>org.cockpit_project.demo-app</id>
<metadata_license>CC0-1.0</metadata_license>
<name>Demo Application</name>
<summary>
Expand All @@ -37,13 +37,13 @@ For a Cockpit component, the AppStream data looks like this:
<description>
<p>This is a demo application</p>
</description>
<extends>cockpit.desktop</extends>
<extends>org.cockpit_project.cockpit</extends>
<launchable type="cockpit-manifest">demo-app</launchable>
</component>
```

This would be placed at
`/usr/share/metainfo/org.cockpit-project.demo-app.metainfo.xml` in
`/usr/share/metainfo/org.cockpit_project.demo-app.metainfo.xml` in
your package.

The important bit is the `launchable` element with type
Expand All @@ -53,7 +53,7 @@ package](https://cockpit-project.org/guide/latest/packages.html) for
your page.

Use the component type `addon` and add an `extends` element for
`cockpit.desktop`.
`org.cockpit_project.cockpit`.

You should of course come up with your own value for the `id` element,
in the usual reverse-DNS style, and adjust the filename accordingly.

0 comments on commit ea7bab7

Please sign in to comment.