[Discussion] Matching of desktop files in distrobox-export #1889
Unanswered
TigerGorilla2
asked this question in
Q&A
Replies: 1 comment
-
|
Moving this do discussion. I can tell you, we have a couple issues about this so it wouldn't be so bad to have some rough edges ironed out, despite the fact that I think running a graphic application in a distrobox should be almost-last resort for a user. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
distrobox/distrobox-export
Line 456 in c05b6a4
When exporting the matching is pretty loose (surrounded by grabby
.*regex) and when exporting something with a short name (1-3 characters) it can match a lot of things. Or in the case nothing is supplied it matches everything! (There should probably be a check whetherexported_appis empty.)I don't know what a good approach to the matching problem would be, since it's nice for users to be able to export something by a name guess that's only close enough. Maybe a confirmation dialog if it matches multiple desktop files?
I think it might be a good idea to have a flag to enable/disable searching of the
Name=field.Then when exporting by the command name you could use
Exec=${exported_app}(notice the space at the end) to only match the provided command name. Since I'd assume someone using the command name would provide the full one.PS the
.*is not needed at the end.Beta Was this translation helpful? Give feedback.
All reactions