Skip to content

Commit 5886005

Browse files
committed
metainfo: Document whole device support snippets
1 parent f291441 commit 5886005

File tree

1 file changed

+40
-0
lines changed
  • docs/02-for-app-authors/03-metainfo-guidelines

1 file changed

+40
-0
lines changed

docs/02-for-app-authors/03-metainfo-guidelines/index.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,46 @@ as a baseline here.
801801
</requires>
802802
```
803803

804+
### Desktop only apps
805+
806+
In short, desktop only apps should have:
807+
808+
```xml
809+
<requires>
810+
<control>keyboard</control>
811+
<control>pointing</control>
812+
<display_length compare="ge">768</display_length>
813+
</requires>
814+
```
815+
816+
### Mobile only apps
817+
818+
Mobile and tablet only apps should have:
819+
820+
821+
```xml
822+
<requires>
823+
<control>touch</control>
824+
<display_length compare="le">1279</display_length>
825+
</requires>
826+
```
827+
828+
### Desktop and and mobile
829+
830+
Apps that support and work on mobile, tablet and desktop should have:
831+
832+
833+
```xml
834+
<recommends>
835+
<control>keyboard</control>
836+
<control>pointing</control>
837+
<control>touch</control>
838+
</recommends>
839+
<requires>
840+
<display_length compare="ge">360</display_length>
841+
</requires>
842+
```
843+
804844
## Manifest location
805845

806846
Applications that are directly uploaded to Flathub through their own

0 commit comments

Comments
 (0)