Re: issue with digikam.desktop file

Gilles Caulier <[email protected]> Tue, 19 Mar 2024 08:04:58 +0100
Newsgroups gmane.comp.kde.digikam.devel
Message-ID <CAHFG6sGoZRAbkJKyhB8n4ZUrHFqrx2CshYp43kyhQgFBr_U2SA@mail.gmail.com>
Hi Steven,

digiKam does not have a direct argument to pass a file. Only a series
of options allows you to change settings as config file or database.

In contrast, Showfoto allows passing directly an argument to open a
file or a directory.

Best

Gilles

=EF=BB=BF=EF=BB=BF=EF=BB=BF=EF=BB=BF=EF=BB=BF

Le mar. 19 mars 2024 =C3=A0 05:03, Steven Robbins <[email protected]> a =C3=
=A9crit :
>
> Hi,
>
> While packaging for debian, the "lintian" tool noted an issue with the de=
sktop
> file:
>
> W: digikam: desktop-mime-but-no-exec-code [usr/share/applications/
> org.kde.digikam.desktop]
> N:
> N:   The named desktop entry indicates support for at least one MIME type=
, but
> does not provide a code like %f, %F, %u or %U in the Exec key.
> N:
> N:   If the application can in fact handle files of the given MIME types,=
 the
> menu item should somehow pass those filenames as parameters to the execut=
able.
>
> My reading of the spec [1] suggests this is correct, as it states:
>
>     Registering MIME Types
>
> The MimeType key is used to indicate the MIME Types that an application k=
nows
> how to handle. It is expected that for some applications this list could
> become long. An application is expected to be able to reasonably open fil=
es of
> these types using the command listed in the Exec key.
>
> I don't think digikam allows specifying files on the command line; so it =
seems
> that the MimeType line should be removed?
>
> -Steve
>
>
> [1] https://specifications.freedesktop.org/desktop-entry-spec/desktop-ent=
ry-spec-latest.html