Skip to content
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

Desktop file creation #632

Merged
merged 1 commit into from
Dec 26, 2024

Conversation

GB609
Copy link
Collaborator

@GB609 GB609 commented Dec 25, 2024

Description

While testing, I discovered that I've introduced a new error with my previous PR #624:
The change in how the value for the 'Exec' key in .desktop files is generated.

I assumed that Exec uses quoting rules identical to shells. However, it does not. Only " can be used for quotes and there are less special characters. shlex.join quotes differently, it uses single quotes ' exclusively which is not compatible with how the Exec key is supposed to be quoted.

I restored the get_exec_line method in installer.py which i previously deleted, and enhanced it instead to conform to the quoting rules as described in The Exec Key.

Sorry about this oversight on my part.

Checklist

  • CHANGELOG.md was updated (format: - Change made (thanks to github_username))

@sharkwouter sharkwouter merged commit 17b7a11 into sharkwouter:master Dec 26, 2024
2 checks passed
@sharkwouter
Copy link
Owner

Thanks! This looks good! For the other PR I'll still need some time to review it, but I have seen it and I really appreciate the work.

@GB609 GB609 deleted the bugfix/desktop_file_quoting branch December 27, 2024 10:11
@GB609
Copy link
Collaborator Author

GB609 commented Dec 27, 2024

Sure, take all the time you need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants