Skip to content

[packages] Adding fixes to get xdg-settings working. #4452

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

Closed
wants to merge 1 commit into from

Conversation

yusuf-goog
Copy link
Contributor

This change sets up a .desktop file for our cipd chrome package which is required to get xdg-settings working.

Unblocks: #4223

Bug:flutter/flutter#130074

Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.

List which issues are fixed by this PR. You must list at least one issue.

If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@yusuf-goog yusuf-goog self-assigned this Jul 13, 2023
@yusuf-goog
Copy link
Contributor Author

@stuartmorgan if you want to merge this into yours or you can copy the code over

@yusuf-goog yusuf-goog requested a review from ricardoamador July 13, 2023 00:48
@yusuf-goog
Copy link
Contributor Author

@stuartmorgan-g
Copy link
Contributor

I'm merging it in to the main PR, since just adding a shell script that we're not using anywhere means there's no context or testing of the change.

CIPD_CHROME_DESKTOP_FILE=${LOCAL_DESKTOP_FILE_DIR}/cipd-chrome.desktop

#MimeType=application/pdf;application/rdf+xml;application/rss+xml;application/xhtml+xml;application/xhtml_xml;application/xml;image/gif;image/jpeg;image/png;image/webp;text/html;text/xml;x-scheme-handler/http;x-scheme-handler/https;
cat << EOF > "$CIPD_CHROME_DESKTOP_FILE"
Copy link
Contributor

@ricardoamador ricardoamador Jul 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I am not sure what the google style doc says but in shell I prefer to use {} with variable references.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I am not sure what the google style doc says but in shell I prefer to use {} with variable references.

That is the Google Bash style preference as well.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thanks Stuart.

This change sets up a .desktop file for our cipd chrome package
which is required to get xdg-settings working.

Unblocks: flutter#4223

Bug:flutter/flutter#130074
Copy link
Contributor

@ricardoamador ricardoamador left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yusuf-goog
Copy link
Contributor Author

@stuartmorgan ok, i'll close this PR then. Please pick up this latest version of the file.

@yusuf-goog yusuf-goog closed this Jul 13, 2023
@stuartmorgan-g
Copy link
Contributor

I believe I've applied all of the missing bracing to my version. (My copy has some simplification and some added use of constants instead of repeat strings, so it's not just a case of copying it over.)

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.

3 participants