Bug 339993 - desktop-mime-but-no-exec-code lintian error when packaging.
Summary: desktop-mime-but-no-exec-code lintian error when packaging.
Status: RESOLVED WORKSFORME
Alias: None
Product: palapeli
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Stefan Majewsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-15 13:37 UTC by Scarlett Moore
Modified: 2022-12-04 05:14 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Patch using %u (278 bytes, patch)
2014-10-15 13:38 UTC, Scarlett Moore
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scarlett Moore 2014-10-15 13:37:36 UTC
Debian policy: The desktop entry lists support for at least one mime type, but does not provide codes like %f, %F, %u or %U for the Exec key.

If the application can indeed handle files of the listed mime types, it should specify a way to pass the filenames as parameters.

Reproducible: Always

Steps to Reproduce:
1. package
2. lintian error
3.


Expected Results:  
no lintian error
Comment 1 Scarlett Moore 2014-10-15 13:38:02 UTC
Created attachment 89146 [details]
Patch using %u

%u	A single URL. Local files may either be passed as file: URLs or as file path.
Comment 2 Ian Wadham 2014-10-17 06:00:54 UTC
From what I can tell, the main use of the mime-type "application/x-palapeli-puzzle" is for use in a connection, via KDE's plugin and service system, between Palapeli and related code (a slicer library) that creates jigsaw puzzles from images supplied by the user.

It is technically possible to start playing a puzzle by supplying a "*.puzzle" filepath on the command line, if Palapeli is started that way, but I think that is just for debugging and development purposes.  If a user is playing, rather than creating, jigsaw puzzles, the usual method of operation is for him or her to select a puzzle from a (GUI) list after Palapeli starts.

So I do not know whether changing the palapeli/src/palapeli.desktop file to say "Exec=palapeli %u" would be beneficial or harmful or whether removing the MimeType line from that file would be better or whether it would be best to leave well-enough alone.

The mime type is definitely needed in four other files (two other *.desktop, one CMakeLists.txt and one *.xml), which implement the plugin referred to above.

How serious is this problem for you?  Your title suggests that it is just "lint".
Comment 3 Luigi Toscano 2017-04-14 22:00:54 UTC
(coming a bit late, but) I would still suggest to implement the proposed change. The application can start with the URL of a puzzle as command line argument, so having %u in the Exec line seems perfectly valid.

(also, this is the last bug about this lintian error left on bugs.kde.org :)
Comment 4 Ian Wadham 2017-04-14 23:01:55 UTC
I am sure it would be OK to omit the %u and disable the implementation of the filename parameter in the Palapeli source code. The original author has long since left the KDE Games team and I have never felt a need for it during debugging and development.
Comment 5 Justin Zobel 2022-11-04 03:10:39 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 6 Bug Janitor Service 2022-11-19 05:13:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2022-12-04 05:14:48 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!