-
Notifications
You must be signed in to change notification settings - Fork 20
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
LINUX: Desktop file improvements #99
Comments
As a side note, I've finally imported caveexpress in my distro, Mageia: http://svnweb.mageia.org/packages/cauldron/caveexpress/current/SPECS/caveexpress.spec?view=markup |
I did what was requested for the Categories in 89d196f Will check out the others asap |
or better here: 0f47afd |
Ah I had missed that. It works for CaveExpress but not for CavePacker, I guess you'd have to replace |
Thanks, that typo is fixed now in master |
The problem with renaming the icons in the install step is, that all the other installers and packages (windows, osx, ios, android, steamlink, ...) rely on the name. So I will most likely just fix the desktop file template. |
which reminds me... what about appdata.xml? Do you make use of this file, too? |
Hi there,
There are currently several issues with the Linux .desktop files as they are generated by the buildsystem, for example:
GenericName
field should in theory describe the kind of game that this is; see it as a short description of the game. Here it could be "Sokoban game". It's not the most important though, many projects do use the same value as forName
.Icon
path is wrong, as icons are installed as${name}-icon.png
. I would suggest to keep the field like that but fix the icons installation name (you can use theRENAME
option for that when installing files with CMake).Categories
field is not descriptive enough. Most DEs rely on those values to put the desktop entry in the proper submenus. Here it should beGame;LogicGame;
(the ending semicolon is important - not critical, but linters will complain if it's missing).All in all, I feel that the current system you use to generate the .desktop files by filling the templates using values from
docs/${name}/
is a bit overkill. To get the values right, you'd have to add at leastCOMMENT
andCATEGORIES
files to each docs folder so that they could be parsed and used in the respective desktop files...It might be a bit less elegant, but I think it would be much easier to just provide a hardcoded .desktop file for each game. If you really want to keep the template + parsed content scheme, then you should probably put all .deskop relevant content in one file as some XML, JSON or YAML and have CMake parse it.
More info about desktop entries:
The text was updated successfully, but these errors were encountered: