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

Update zypper.go (opensuse-tumbleweed) #2593

Merged
merged 1 commit into from
Apr 16, 2023
Merged

Update zypper.go (opensuse-tumbleweed) #2593

merged 1 commit into from
Apr 16, 2023

Conversation

wgjtyu
Copy link
Contributor

@wgjtyu wgjtyu commented Apr 14, 2023

  • Add package(webkit2gtk3-soup2-devel) for libwebkit.
  • Add package(pkgconf-pkg-config) for pkg-config.
  • Change environment variable before running command to query information of the package.

@@ -60,7 +62,9 @@ func (z *Zypper) PackageInstalled(pkg *Package) (bool, error) {
if pkg.SystemPackage == false {
return false, nil
}
stdout, _, err := shell.RunCommand(".", "zypper", "info", pkg.Name)
var env []string
env = shell.SetEnv(env, "LANGUAGE", "en_US.utf-8")
Copy link
Member

Choose a reason for hiding this comment

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

Do we know this isn't going to break non US English installations?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, my OS was Chinese, if we don't set LANGUAGE env variable here, the zypper info pkgName command will return result in Chinese, so wails doctor will nott work properly here.

@leaanthony
Copy link
Member

Please update the changelog in website/src/pages/changelog.mdx 🙏

@wgjtyu
Copy link
Contributor Author

wgjtyu commented Apr 14, 2023

OK, updated.

Add package(webkit2gtk3-soup2-devel) for `libwebkit`.
Change environment variable before running command to query information
of the package.
@leaanthony leaanthony merged commit eaca3d0 into wailsapp:master Apr 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants