-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
Handle multiple (and no) desktop files better? #25
Comments
You are correct about the problem. The question is whether you want to resolve this at AppDir creation time or at runtime. I opted for the first, but I could see reasons to go for the second. Why did I go for the first?
What I could imagine:
Basically similar to what you suggest but keep in mind it has to keep working without the command line, and 3rd party tools (like daemons for system integration) need a way to find out what is the main app and, ideally, what should happen to the other .desktop files). What do you think? |
I like your proposal, although I was actually suggesting it be resolved at AppImage creation, not runtime-- because currently AppImageKit chokes under the following conditions:
This happened to me when trying to build kate, which ships with a lot of (generated?) desktop files; for instance, katebacktracebrowserplugin.desktop. This is fixable by deleting the spurious files, but it'd be nice if there was some automation in AppImageKit that could do this to pick the default entry point. Though I guess the desktop.manifest would cover this case? As you could specify "these are invalid, do not use". Or maybe AppDirectoryKit does/will give the choice of "select default app.desktop" file and this is just something that apt-appdir doesn't do? |
Yes, asking the user at creation time is sensible. Right now the correct desktop file has to be placed in the root directory of the AppDir manually, but I would welcome a more comfortable solution. |
Could be considered for |
No exclamation marks, addresses #22
Right now, it seems that AppImageAssistant just selects the first *.desktop file in an app directory, even if there are multiple.
(apt-appdir's app directories, at the very least, can suffer from this problem. And the tool I wrote this afternoon that uses Mock has the same problem... if not worse, because usually more dependencies get pulled in).
Is it possible to handle this better? I would think that some combination of the below might be reasonable:
I'd be willing to contribute some code to make this better, but I figured I'd ask first. :)
The text was updated successfully, but these errors were encountered: