The python3 module is used in meson only to check that a recent
version is available, so there is no need to store the module in a
variable for any other use.
Totem install a session bus service file. This file is installed in
the `dbus-1/services` directory under `datadir`. However, the real
directory can be checked from the `dbus-1.pc` pkg-config file.
A new option has also been added to set as a different session bus
services directory, so the user can install the file in it.
This patch migrates plugins files from Intltool to Gettext by using
meson's i18n features. However, the migration has workarounds for
two issues.
The first issue lies in the fact that, even though the `plugin` uses
the Desktop entry specification[0], it is not recongnized as such by
gettext because it uses the file extension to detect the supported
files.
The second issue resides in the translatable entries used by the
`plugin` files: `Name` and `Description`. Although `Name` is part
of the default keyworks, `Description` is not.
As a workaround for these problems, the files has been renamed to
include the `desktop` extension, which helps gettext detecting
the `plugin` files. After the translation merge process they are
renamed to their right name without the `desktop` extension.
The default procedure to extract the translatable strings and
merge them has also been changed. New targets have been included
to generate the `pot` file and merge the translations.
The build files involved on plugins building and installation have
been improved. The description `plugin` file of each plugin is
created now at the `src/plugin` directory that simplifies the
build commands.
All dependencies has also been revised. Redundant dependencies have
been removed. Common dependencies, compiler arguments and included
directories have been now grouped under the same dependency.
Following the `subdir` -> `plugin name ` pattern, the `properties`
directory has been renamed to `movie-properties`. The `im-status`
plugin files have also been renamed to remove the `totem-` prefix.
Now, only the plugins passed from the command line are checked
because those are the ones that can only be error prone.