Michel wrote:/usr/share/games/plugins
I am still not happy with this. A chess engine is really something different from a flash plugin (it is not because a chinese chess gui demotes a chess engine to a plugin that it is really the right name....).
Calling the directory "plugins" will lead to a lot of confusion since the word plugin already has a quite specific meaning. Usually a plugin is a shared library which is loaded by an application which exports some functions which the application can call. Plugins are specific for a specific application. They are not generic things like chess engines.
Here is a typical plugin
/usr/lib64/rhythmbox/plugins/visualizer/libvisualizer.so
Don't forget what the guide says about this either. It is strictly for data only, and could be mounted as read only.
This is one of those things you don't want to get wrong - it will either be totally rejected or it will end up being a constant nuisance. It's not uncommon for distributions to change things to match their own vision of how things should be done so we would want to minimize the chance of that happening.
In my opinion, even though this is not quite as hierarchical as you might want, a more consistent with common practice way would look something like this:
/usr/share/games/chess/fruit
/usr/share/games/chess/toga
/usr/share/games/shogi/*
/usr/share/games/checkers/*
The pattern is /usr/share/GAME_TYPE/APPLICATION_NAME
I see that the only time a hierarchy is used in /usr/share is for things like fonts - something that is used everywhere in the system by many programs. Otherwise it's very application specific - not even text editors have their own shared Folder and one text editor is much closer to another than various kinds of board games.
games is another exception but games on a computer are ubiquitous and it makes some sense. In general you have to strike the right balance between going crazy with creating sub-directories gratuitously and being reasonable.
On a freshly installed system you home directory will have this in it:
Desktop
Documents
Downloads
Music
Pictures
Video
One could subdivide this in a few different ways. Music, Pictures and Video's could be combined into a single Media Folder for example. Pictures are in some sense documents. I think some people believe that a directory tree should always have just 2 branches and try their hardest to make it so, even if they have to use force. Like trying to make a puzzle piece fit that is close but not quite right.
The general principle here that you should never be less specific than what would confuse people who are looking for something. Imagine a monopoly programmer deciding to create this:
/usr/share/games/board
Then the risk programming doing this:
/usr/share/games/strategy
and we decide to use
/usr/share/games/plugins
Now which of those does our chess stuff go in?
It's just hard for me to believe you don't see the problem. My proposal has no ambiguity at all to it. Under games use /chess, /shogi /whatever and nobody will be confused and GUI software can easily find it.
Admittedly, part of the problem is that in general /usr/share is pretty application specific. So despite what we do, A GUI that needs to install global data is also going to have it's own directory in /usr/share/games so you will see /usr/share/games/Arena (if Arena were ported to Linux and part of a distribution) and so on.
Don
Capital punishment would be more effective as a preventive measure if it were administered prior to the crime.