Add secondary check for library looking within File system if pkg-config could not locate the library

Open
#4,852 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go, linux
Domain
cli, desktop

Research direction

Start at the checkLibrary function used by wails doctor and inspect how pkg-config failures are handled; compare the requested /lib and /usr/lib fallback paths. Done means an installed library that pkg-config misses is checked by the fallback and wails doctor no longer reports it as missing.

Written by the indexing model from the issue text.

Description

Enhancement Linux MacOS P2 stale v3 Windows
Is your feature request related to a problem? Please describe.

Currently, the checkLibrary function is completely reliant on pkg-config. In some cases, even if a library is installed, it might not report properly.

Example

Using Fedora 43, even if webkit2gtk4.1-devel is installed, wails doctor will report it as missing.

Describe the solution you'd like

I would like to suggest a fallback if not detected to check the file /lib and /usr/lib paths for a second chance

Describe alternatives you've considered

Due to the many differences between distributions, after pkg-configm there isn't a reliable way of determining if libraries are installed without creating different paths depending on the distribution / package manager in use.

Additional context

PR present that Github should automatically link in just a moment

Dominant language
Go
Stars
36.3k
Forks
1.9k
Avg merge
2d 11h
Merged PRs (30d)
33

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wailsapp/wails

All issues in wailsapp/wails

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.