-
-
Notifications
You must be signed in to change notification settings - Fork 566
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
Refuse to run if Categories= is missing in desktop file #873
Comments
Why to refuse? Why at run-time? It's not enough to verify it when the AppImage is created. |
@probonopd we shouldn't invent our own validation, we use desktop-file-validate and it worked fine for quite a while. |
Exactly. We should refuse the creation of an AppImage if
As far as I know, I then have a lot of work rejecting those and getting things sorted in https://github.com/AppImage/appimage.github.io, and am sick and tired of it. See AppImage/appimage.github.io#2 Since @develar is using his own tools, he should check for this too, if I may have a wish :-) |
According to your suggestions (thanks!), in case of electron-builder this value is never empty — https://github.com/electron-userland/electron-builder/blob/master/packages/app-builder-lib/src/targets/LinuxTargetHelper.ts#L102 If we cannot do something smart, warn printed and |
Cool, thanks @develar 👍 |
We shouldn't try to solve issues in Freedesktop standards by adding more and more constraints. We could show a warning... |
As |
I am against restricting developers in that way. We should only show recommendations how to improve users' UX. Such a warning will make people just add |
The point is, I am currently we are not letting such AppImages pass tests in AppImageHub. Either we let it slip in both places nor none, or else we are just creating additional work for ourselves. And I hate avoidable chores... |
There is a big difference between "necessary" and not. linuxdeploy would be the right place to add such checks for instance. But appimagetool is too late in the toolchain to add constraints. |
One can look at it as "late", but one can also look at it as "low level", meaning most AppImages will run through |
"low level" is the right word. Low level tools shouldn't apply any non-fatal constraints. And it's a non-fatal one in the sense that it's a valid desktop file. |
Where does this theory come from? |
appimagetool shoud refuse to run if
Categories=
is missing in desktop file.Should help in these cases:
AppImage/appimage.github.io#2
The text was updated successfully, but these errors were encountered: