-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add APPIMAGETOOL_APP_NAME environment variable #18
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the suggestion, but it works as designed and I'd prefer not to introduce this complexity. I can only see downsides in this - AppImage files with names different from how the application actually is named.
I consider it a feature that the Name=
entry is used for naming the AppImage file, because only this way the two can guaranteed to be always consistent. The AppImage file should be named like the application is named, in the same spelling, capitalization etc. (just blanks replaced by _
).
There should be only one "source of truth" for the name of the application. Don't like it? Change the Name=
in the desktop file.
Nobody ever questioned that.
There is no logic in this argument. There already is an output path parameter that does exactly this.
Still there as a fallback.
That again doesn't make a lot of sense. The rationale for this change is tools like appimagecraft or KDE craft which need to have predictable output. They usually know the application name, and want a unified name pattern on all platforms. It makes no sense to have an AppImage called The reason why the output name parameter is not used (or rather useless) is that the automatic generation of a suitable name is actually pretty useful. Having appimagetool guess the architecture (which typically works quite well) and insert the version number in a standardized way is a good thing. People should really be able to use this feature with a customized name and should never have to reproduce the name generation appimagetool already provides yet again. It makes no sense. |
Also, having to actively rename the file makes no sense, just because the tool is limited in this way... |
Have you actually seen the change? It doesn't add any significant complexity while fixing some potential stack overflows even... |
And that is exactly my point. If the application is called "My Fantastic Application", then traditionally you have
But hey. If KDE Craft needs it, then well.
Renaming the files is a big no-no in any case, because it breaks AppImageUpdate. |
More use cases:
Software, especially cross-platform and/or commercial, need such features. |
I disagree. This only happens in some use cases. For instance, many projects generate their own You really should see some of the deployment pipelines I came across in the last years... |
Bad, bad, bad. https://github.com/pop-os/popsicle calls it "Popsicle" in the README.md. That is the name of the product. So it should be Maybe I am so picky about this because part of my dayjob is to enforce unified spelling of product names all the time. But again, my thoughts here are not a hard veto. Just food for thought. |
So what? It's the UX they chose. On their own desktop, this is perfectly fine (GNOME for instance just uses "Software" instead of "GNOME Software", "Files" instead of "Nautilus", etc., which works on such a desktop and of course is confusing outside of it). But I think this is not the place to discuss such things. I just want to show that these use cases exist and appimagetool could be more helpful. |
Well, you blocked merging with your changes request. Please approve the changes then. |
You want to make it easy for them to continue that mess whereas I want to "forcefully remind" them to end the mess. ;-) If you want to do me a favor, let's state in the documentation for this environment variable that it is best practice to use the exact same name, spelling, and upper/lowercase for:
|
Allows using the output name generation appimagetool provides with desktop files whose `Name` entry is unsuitable for the purpose. Users can specify their own prefix with this new environment variable.
b46a903
to
70c2f22
Compare
Allows using the output name generation appimagetool provides with desktop files whose
Name
entry is unsuitable for the purpose. Users can specify their own prefix with this new environment variable.Based on #17, please do not merge but only approve if it works for you. You can find the diff to the other branch here: https://github.com/AppImage/appimagetool/compare/document-env-vars...app-name-prefix?expand=1