This patch adds functionality to allow the KNS backend to report applications in a more familiar fashion: If the specific backend has applications, the run button will read Launch (rather than Use), and only be shown if there are downloaded (installed) executables to run, and then run that when activated.
Details
Details
- Reviewers
apol ngraham - Group Reviewers
Discover Software Store - Commits
- R134:727d8e55e46c: Make KNS applications act more like applications
Diff Detail
Diff Detail
- Repository
- R134 Discover Software Store
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
libdiscover/backends/KNSBackend/KNSResource.cpp | ||
---|---|---|
213 | Can't we do this in the adoption command? This way we won't have another special case. |
libdiscover/backends/KNSBackend/KNSResource.cpp | ||
---|---|---|
213 | Hmm... I guess we could... It requires making a choice in the knsrc file on which tool to use for using the app, which i guess might be e.g. AppImageLauncher... but i guess that isn't really that much of a problem anyway. Sure, i'll just do that instead. And yes, less special cases are certainly nice :) |
Comment Actions
We now assume that an AdoptionCommand is set. This reduces the code overhead, which is always nice.